@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-regular-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-medium-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-semibold-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-bold-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Causten', sans-serif !important;
    background-color: #F8F7F2;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Causten', sans-serif !important;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    background: #FFFFFF;
    border-bottom: 1px solid #E4E4E7;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link-item {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-signin-top {
    background: #0D0D0D;
    color: #fff;
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-signin-top:hover {
    background: #000;
    color: #fff;
    transform: scale(1.02);
}

/* Main Content Wrapper */
.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px; /* Offset for fixed header/footer */
}

/* Auth Card */
.auth-card {
    background: #fff;
    border-radius: 20px;
    border: none;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
}

.auth-card-body {
    padding: 40px 30px 25px 30px;
}

.auth-card-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
    letter-spacing: -0.5px;
}

.auth-card-subtitle {
    font-size: 16px;
    color: #71717A; 
    margin-bottom: 40px;
}

/* Form Styles */
.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717A;
    font-size: 18px;
    z-index: 10;
}

.form-control-custom {
    width: 100%;
    height: 56px;
    background: #FFF;
    border: 1.5px solid #000; /* Matching the "boxed" look from design */
    border-radius: 12px;
    padding: 0 50px 0 52px;
    font-size: 15px;
    color: #000;
    transition: all 0.2s ease;
}

/* Second input in design has gray border */
.input-group-custom:nth-of-type(2) .form-control-custom {
    border-color: #D4D4D8;
}

.form-control-custom:focus {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717A;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: right 0.2s ease;
}

/* removes the exclamation icon */
input#password.is-invalid {
    background-image: none !important;
}

/* Validation Styles */
.form-control-custom.is-invalid {
    border-color: #DC3545 !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 6px;
    font-size: 13px;
    color: #DC3545;
    font-weight: 500;
}

/* Options Wrapper */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid #D4D4D8;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    background: #fff;
    margin: 0;
}

.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #71717A;
    user-select: none;
}

.forgot-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Submit Button */
.btn-submit-full {
    width: 100%;
    height: 56px;
    background: #0D0D0D;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit-full:hover {
    background: #000;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    color: #A1A1AA;
    font-size: 12px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E4E4E7;
}

.divider:not(:empty)::before { margin-right: 16px; }
.divider:not(:empty)::after { margin-left: 16px; }

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.btn-social {
    flex: 1;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* Reduced from 12px to avoid pill shape on small buttons */
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    gap: 8px;
    white-space: nowrap;
}

.btn-facebook { background: #1877F2; color: #fff; }
.btn-google { background: #fff; border: 1px solid #D4D4D8; color: #000; }
.btn-apple { background: #0D0D0D; color: #fff; }

.btn-social:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* Footer Link */
.signup-wrapper {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #52525B;
}

.signup-link {
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.signup-link:hover { text-decoration: underline; }

/* Page Footer */
.page-footer {
    padding: 24px 0;
    background: #FFFFFF;
    border-top: 1px solid #E4E4E7;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #71717A;
    font-weight: 500;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* Tablet / Mobile Adjustments */
@media (max-width: 640px) {
    .page-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        position: relative; /* Fixed header captures too much space on small mobile */
        border-bottom: 1px solid #E4E4E7;
    }

    .brand-logo img {
        height: 20px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .nav-link-item {
        display: inline-block;
        font-size: 11px;
    }

    .btn-signin-top {
        width: auto;
        text-align: center;
        padding: 8px 24px;
        font-size: 12px;
    }

    .auth-wrapper {
        padding: 40px 16px;
    }

    .auth-card {
        border-radius: 24px;
    }

    .auth-card-body {
        padding: 40px 24px;
    }

    .auth-card-title {
        font-size: 28px;
    }

    .social-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .btn-social {
        padding: 0 10px;
        font-size: 10px;
    }

    .page-footer {
        position: relative;
        padding: 24px 20px;
        margin-top: auto;
    }
}

/* Extra small screens fix for checkbox area */
@media (max-width: 400px) {
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .forgot-link {
        width: 100%;
    }
}

