@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #2d2d2d #f8f9fa;
}

html {
    scroll-behavior: smooth;

}

::-webkit-scrollbar {
    width: 10px;              
    height: 10px;            
    background-color: #f1f1f1; 
}

::-webkit-scrollbar-track {
    background: #f8f9fa;      
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #2d2d2d;      
    border-radius: 10px;      
    border: 2px solid #f8f9fa; 
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000;     
}
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: -1;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 50px;
    width: 100%;
    max-width: 510px;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000 0%, #333 100%);
    transform: scaleX(0);
    animation: topLine 0.6s ease-out 0.3s forwards;
}

@keyframes topLine {
    to {
        transform: scaleX(1);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out 0.2s both;

}
.auth-logo .auth-text-heading {
    font-family: DM Sans;
font-weight: 500;
font-style: Medium;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 0px;
}
.auth-logo .auth-text-paragraph {
    font-family: DM Sans;
font-weight: 400;
font-style: Regular;
line-height: 20px;
letter-spacing: 0px;
}

.auth-logo h2 {
    margin-bottom: 8px;
    font-family: DM Sans;
    font-weight: 900;
    font-style: Black;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: start;
}

.auth-logo p {
    color: #666;
    font-size: 14px;
    font-family: DM Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: start;

}

.form-group {
    margin-bottom: 20px;
    animation: fadeInLeft 0.5s ease-out backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.15s;
}

.form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.form-group:nth-child(4) {
    animation-delay: 0.25s;
}

.form-group:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-label {
    color: #000;
    margin-bottom: 8px;
    display: block;
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;

}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    width: 100%;
    font-family: DM Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;

}

.form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    outline: none;
    transform: translateY(-1px);
}

/* === FIX 1 & 2: Input Icon Container === */
.input-icon {
    position: relative;
    display: block;
    width: 100%;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
    z-index: 2;
    pointer-events: none;
    width: 16px;
    text-align: center;
}

.input-icon .form-control {
    padding-left: 44px;
    padding-right: 44px;
    /* Space for password toggle */
}

.input-icon:focus-within i {
    color: #000;
}

/* === FIX 2: Password Toggle Button === */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 4px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: start;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.password-toggle i {
    font-size: 12px;
}

/* === FIX 3: Checkbox Alignment === */
.form-check {
    animation: fadeIn 0.5s ease-out 0.35s both;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.form-check-input:checked {
    background-color: #000;
    border-color: #000;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.form-check-label {
    color: #666;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    font-family: DM Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;

}

.form-check-label a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.form-check-label a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Forgot Password Row Alignment */
.forgot-password-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.forgot-password-row .form-check {
    margin: 0;
    animation: none;
}

.forgot-password-row a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.forgot-password-row a:hover {
    color: #000;
    text-decoration: underline;
}

/* === FIX 4: Button Spinner & Text Alignment === */
.btn-submit {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out 0.45s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    font-family: DM Sans;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 13px;
    letter-spacing: 1%;
    text-align: center;
    vertical-align: middle;

}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Spinner Styles */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-submit.loading .spinner {
    display: block;
}

.btn-submit.loading .btn-text {
    opacity: 0.9;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-text i {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-text i {
    transform: translateX(4px);
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    animation: fadeIn 0.5s ease-out 0.5s both;
    font-family: DM Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 11.5px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;

}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e0e0e0;
}

.divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 30% !important;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    position: relative;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease-out 0.55s both;
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;

}

.btn-social {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-height: 44px;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-social i {
    font-size: 18px;
}

.auth-footer {
    color: #666;
    animation: fadeIn 0.5s ease-out 0.6s both;
    font-family: DM Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;

}

.auth-footer a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.auth-footer a:hover {
    opacity: 0.7;
}

.security-text {
    margin-top: 20px;
    color: #999;
    animation: fadeIn 0.5s ease-out 0.65s both;
    line-height: 1.5;
    font-family: DM Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 11px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;

}

.security-text a {
    color: #525252;
    text-decoration: none;
    margin: 7px ;

}

.security-text a:hover {
    text-decoration: underline;
}

.brand-logo {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10;
    animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-logo img {
    max-width: 150px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 24px;
        margin: 10px;
    }

    .auth-logo h2 {
        font-size: 24px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        top: 16px;
        left: 16px;
    }

    .brand-logo img {
        max-width: 120px;
    }

    .forgot-password-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 13px;
    }

    .input-icon .form-control {
        padding-left: 40px;
        padding-right: 40px;
    }

    .btn-submit {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 46px;
    }

    .auth-logo h2 {
        font-size: 22px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}