:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --shadow-blue: rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--gradient-blue);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
    background: var(--gradient-blue);
}

.auth-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    z-index: 1;
}

.auth-bg-shape::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: white;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
}

/* Desktop Logos - positioned in top left */
.auth-logos-desktop {
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
    align-items: center;
}

.auth-logo-small img {
    height: 25px;
    width: auto;
    object-fit: contain;
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 3;
    margin-top: 6rem;
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 3;
    background: transparent;
}

.auth-title {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

.auth-title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.auth-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.auth-officials {
    display: flex;
    justify-content: center;
}

.auth-official {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-official img {
    height: 225px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.auth-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 4;
}

/* Mobile logos inside card */
.auth-logos-mobile {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    gap: 10px;
    align-items: center;
    z-index: 5;
}

.auth-logos-mobile .auth-logo-small img {
    height: 25px;
}

/* Mobile App Title */
.auth-app-title-mobile {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 60px;
    padding: 0 20px;
}

.auth-app-title-mobile h1 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.auth-app-title-mobile p {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
}

.auth-form-header h2 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem var(--shadow-blue);
    background: white;
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.password-toggle {
    position: relative;
}

.password-toggle button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    z-index: 5;
}

.btn-primary {
    width: 100%;
    background: var(--gradient-blue);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-blue);
}

.btn-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary-blue);
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #6b7280;
    margin: 0;
}

.auth-footer a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        background: var(--gradient-blue);
    }

    .auth-bg-shape,
    .auth-bg-shape::before {
        display: none;
    }

    .auth-left {
        display: none;
    }

    .auth-logos-desktop {
        display: none;
    }

    .auth-logos-mobile {
        display: flex;
    }

    .auth-app-title-mobile {
        display: block;
    }

    .auth-right {
        flex: none;
        width: 100%;
        max-width: 500px;
        background: transparent;
        padding: 0;
    }

    .auth-form-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        position: relative;
    }

    .auth-form-header {
        margin-top: 0;
    }

    .auth-form-header h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .auth-title h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
    }

    .auth-form-container {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .auth-form-header h2 {
        font-size: 1.8rem;
    }

    .auth-logos-mobile .auth-logo-small img {
        height: 22px;
    }

    .auth-logos-mobile {
        top: 15px;
        left: 15px;
        gap: 8px;
    }

    .auth-app-title-mobile {
        margin-top: 50px;
    }

    .auth-app-title-mobile h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }

    .auth-form-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .auth-form-header h2 {
        font-size: 1.6rem;
    }

    .auth-form-header p {
        font-size: 0.9rem;
    }

    .auth-logos-mobile .auth-logo-small img {
        height: 20px;
    }

    .auth-logos-mobile {
        top: 12px;
        left: 12px;
        gap: 6px;
    }

    .auth-app-title-mobile {
        margin-top: 45px;
    }

    .auth-app-title-mobile h1 {
        font-size: 1.4rem;
    }

    .auth-app-title-mobile p {
        font-size: 0.85rem;
    }
}

/* Additional mobile-specific styles */
@media (max-width: 1024px) {
    .form-control {
        padding: 1rem;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
