@font-face {
    font-family: 'KozGoPro';
    src: url('../fonts/KozGoPro-Light-AlphaNum.ttf') format('truetype'),
         url('../fonts/KozGoPro-Light-AlphaNum.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --er-primary: #dc3c26;
    --er-primary-hover: #c23320;
    --er-primary-dark: #a02d20;
    --er-secondary: #2c3e50;
    --er-light: #f8f9fa;
    --er-dark: #212529;
    --er-gray: #6c757d;
    --er-border: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'KozGoPro', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    font-family: 'KozGoPro', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--er-secondary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles */
.er-navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.er-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: inline-block;
    text-decoration: none;
}

.navbar-brand img {
    transition: transform 0.2s;
    display: block;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    color: var(--er-secondary);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    display: inline-block;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--er-primary);
    background-color: rgba(220, 60, 38, 0.08);
}

.nav-link.active {
    color: white;
    background-color: var(--er-primary);
}

.nav-link.text-danger {
    color: var(--er-primary);
}

.nav-link.text-danger:hover {
    color: white;
    background-color: var(--er-primary);
}

/* Login Page Styles - Split Layout */
.login-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f5f7fa;
}

.login-split-wrapper {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    background: white;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Left Section */
.login-left {
    flex: 1;
    background: var(--er-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.login-left-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
}

.login-left-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-left-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.login-left-logo img:hover {
    transform: scale(1.05);
}

.login-left h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.login-left .lead {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-align: center;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    justify-content: flex-start;
    width: 100%;
    max-width: 300px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Decorative Elements */
.login-left-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.decoration-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.decoration-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
}

/* Right Section - Login Form */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-header {
    margin-bottom: 2rem;
}

.login-form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--er-secondary);
    margin-bottom: 0.5rem;
}

.login-form-header p {
    color: var(--er-gray);
    font-size: 1rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    color: var(--er-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.875rem;
}

.login-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.login-form .form-control:hover {
    border-color: #ccc;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--er-primary);
    box-shadow: 0 0 0 4px rgba(220, 60, 38, 0.1);
}

.login-form .btn-er-primary {
    background: var(--er-primary);
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.login-form .btn-er-primary svg {
    transition: transform 0.3s;
}

.login-form .btn-er-primary:hover {
    background: var(--er-primary-hover);
    box-shadow: 0 10px 30px rgba(220, 60, 38, 0.3);
    transform: translateY(-2px);
}

.login-form .btn-er-primary:hover svg {
    transform: translateX(4px);
}

.login-form-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-form-footer a {
    color: var(--er-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.login-form-footer a:hover {
    text-decoration: underline;
}

/* First Time Login Section */
.first-time-section {
    animation: slideUp 0.5s ease-out;
}

.first-time-section h3 {
    color: var(--er-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Home Page Styles */
.home-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--er-secondary);
    font-weight: 700;
}

.home-content .lead {
    font-size: 1.25rem;
    color: var(--er-gray);
    margin-bottom: 2.5rem;
}

.btn-danger {
    background: var(--er-primary);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: var(--er-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 60, 38, 0.4);
}

/* Loading animation */
.form-control:focus + .form-label {
    color: var(--er-primary);
}



/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--er-primary) 0%, #e74c3c 50%, var(--er-primary) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--er-primary);
}

/* Footer Links */
.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: all 0.3s;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
    color: var(--er-primary);
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Footer Contact */
.footer-contact .contact-item {
    margin-bottom: 1.5rem;
}

.footer-contact .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact .details {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Footer Info */
.footer-info .logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info .logo-item img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-info .acca-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-info .acca-logo img {
    width: 42px;
    height: 42px;
    border-radius: 4px;
}

.footer-info .acca-text {
    display: flex;
    flex-direction: column;
    font-size: 0.813rem;
    line-height: 1.2;
}

.footer-info .address {
    margin-top: 2rem;
}

.footer-info .address p {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-info .address .company-reg {
    margin-top: 1rem;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info .logos {
        flex-direction: column;
        align-items: flex-start;
    }
    
 
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-left-logo img {
        height: 70px;
    }
    
    .login-left h1 {
        font-size: 2rem;
    }
    
    .login-left .lead {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 0;
        min-height: 100vh;
    }
    
    .login-split-wrapper {
        flex-direction: column-reverse;
        min-height: 100vh;
        box-shadow: none;
    }
    
    .login-left {
        padding: 1.5rem;
        min-height: 250px;
        order: 2;
    }
    
    .login-right {
        padding: 1.5rem;
        order: 1;
        min-height: auto;
    }
    
    .login-left-logo {
        margin-bottom: 1.5rem;
    }
    
    .login-left-logo img {
        height: 60px;
    }
    
    .login-left h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .login-left .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        min-width: 140px;
    }
    
    .feature-icon {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
    
    .login-form-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .login-form-header p {
        font-size: 0.9rem;
    }
    
    .login-form .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .login-form .btn-er-primary {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Navbar mobile adjustments */
    .er-navbar .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* iPhone 12 and similar devices (390px width) */
@media (max-width: 420px) {
    .login-container {
        min-height: 100vh;
    }
    
    .login-split-wrapper {
        min-height: 100vh;
    }
    
    .login-left {
        padding: 1rem;
        min-height: 200px;
    }
    
    .login-right {
        padding: 1rem;
        display: flex;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .login-form-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .login-left-logo {
        margin-bottom: 1rem;
    }
    
    .login-left-logo img {
        height: 50px;
    }
    
    .login-left h1 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .login-left .lead {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .features {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.8rem;
        text-align: left;
        justify-content: flex-start;
        width: 100%;
        max-width: 250px;
    }
    
    .login-form-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .login-form-header h2 {
        font-size: 1.25rem;
    }
    
    .login-form-header p {
        font-size: 0.85rem;
    }
    
    .login-form .form-group {
        margin-bottom: 1.25rem;
    }
    
    .login-form .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .login-form .form-control {
        padding: 0.75rem;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .login-form .btn-er-primary {
        padding: 0.875rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }
    
    .login-form-footer {
        margin-top: 1.5rem;
    }
    
    .login-form-footer a {
        font-size: 0.85rem;
    }
    
    /* First time login adjustments */
    .first-time-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .first-time-section h3 {
        font-size: 1.125rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .first-time-section p {
        font-size: 0.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Navbar ultra-mobile */
    .er-navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-nav {
        gap: 0.125rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Footer mobile adjustments */
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0 0.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .footer-contact .label {
        font-size: 0.75rem;
    }
    
    .footer-contact .details {
        font-size: 1rem;
    }
    
    .footer-info .address p {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 1rem;
    }
    

}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .login-left-logo img {
        height: 45px;
    }
    
    .login-left h1 {
        font-size: 1.125rem;
    }
    
    .login-left .lead {
        font-size: 0.8rem;
    }
    
    .login-form-header h2 {
        font-size: 1.125rem;
    }
    
    .login-form .form-control {
        padding: 0.625rem;
    }
    
    .login-form .btn-er-primary {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        justify-content: flex-start;
        width: 100%;
        max-width: 200px;
    }
    
    .feature-icon {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}

/* Alert Styles for Forgot Password */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    position: relative;
}

.alert-success {
    background-color: #d1edff;
    border-color: #26a69a;
    color: #1e7e34;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Additional Mobile Improvements */
@media (max-width: 768px) {
    /* General mobile improvements */
    .main-content {
        padding: 1rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px; /* Better touch target */
    }
    
    /* Card improvements */
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Text improvements */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    /* Table improvements */
    .table-responsive {
        border: none;
        overflow-x: auto;
    }
    
    .table {
        font-size: 0.9rem;
        min-width: 100%;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile improvements */
    .container {
        padding: 0 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        justify-content: flex-start;
        width: 100%;
        max-width: 200px;
    }
    
    .feature-icon {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
        flex-shrink: 0;
    }
}

@media (max-width: 360px) {
    /* Very small screen improvements */
    .container {
        padding: 0 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.7rem;
        justify-content: flex-start;
        width: 100%;
        max-width: 180px;
    }
    
    .feature-icon {
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
        flex-shrink: 0;
    }
}
