/* Modern Auth Design - Figma Inspired */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #F5F5F5;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile Status Bar */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: #FFFFFF;
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 17px;
}

.status-bar .time {
    flex: 1;
    text-align: center;
}

.status-bar .indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Background with overlay */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(180deg, #00000000 0%, #6ED4BE 100%), url(../images/bg.jpg) center / cover; */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 41.55%, #6ED4BE 80.25%), url("../images/bg.jpg") lightgray -0.05px -339.105px / 100.012% 137.762% no-repeat;
    z-index: 1;
}

/* Logo */
.auth-logo {
    position: relative;
    left: 24px;
    top: 24px;
    z-index: 10;
}

.auth-logo img {
    padding: 8px;
}

.auth-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #FFFFFF;
}

/* Main Form Container */
.auth-form-container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.auth-form {
    width: 100%;
    max-width: 331px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Input Fields */
.auth-input-group {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #ECF0F1;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
    box-sizing: border-box;
}

.auth-input-group .input-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.auth-input-group input {
    border: none;
    outline: none;
    background: none;
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2D2D2D;
    line-height: 1;
}

.auth-input-group input::placeholder {
    color: #BEBEBE;
}

.auth-input-group input:focus {
    outline: none;
}

/* Remember me and Forgot password */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.remember-checkbox::after {
    content: '✓';
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.remember-checkbox.checked,
input[type="checkbox"]:checked+.remember-checkbox {
    background: #6ED4BE;
    border-color: #6ED4BE;
}

.remember-checkbox.checked::after,
input[type="checkbox"]:checked+.remember-checkbox::after {
    opacity: 1;
}

.remember-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
}

.forgot-password {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Sign In Button */
.auth-submit-btn {
    background: #6ED4BE;
    border: none;
    border-radius: 16px;
    padding: 12px 0;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    background: #5bc4a8;
    transform: translateY(-1px);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.1);
}

/* Bottom Text Section */
.auth-bottom-text {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 31px;
    color: #FFFFFF;
}

.auth-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.2;
}

.auth-download-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.app-store-btn {
    width: 138px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
}

.app-store-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.app-store-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Safari Bottom Bar */
.safari-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 135px;
    z-index: 20;
}

.safari-bar-bg {
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    height: 134px;
    background: #F7F7F7;
    box-shadow: 0px -0.4px 0px 0px #C1C1C1;
}

.safari-address-bar {
    position: absolute;
    bottom: 78px;
    left: 27px;
    right: 27px;
    height: 42px;
}

.safari-address-input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 4px;
}

.safari-address-text {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    color: #202124;
    text-align: center;
}

.safari-icons {
    position: absolute;
    bottom: 42px;
    left: 17px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.safari-icon {
    width: 24px;
    height: 24px;
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 139px;
    height: 5px;
    background: #AEAEB2;
    border-radius: 100px;
    z-index: 25;
}

/* Error States */
.auth-input-group.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Montserrat', sans-serif;
}

/* Loading State */
.auth-submit-btn:disabled {
    background: #BEBEBE;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-btn.loading {
    position: relative;
}

.auth-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-form {
        max-width: 100%;
    }

    .app-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .auth-bottom-text {
        padding: 20px;
    }

    .auth-headline {
        font-size: 16px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-download-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-bottom-text {
        padding: 15px;
    }

    .safari-bottom {
        display: none;
        /* Hide safari bar on very small screens */
    }

    .home-indicator {
        bottom: 20px;
    }
}

/* Sign up link */
.auth-signup-link {
    text-align: center;
    margin-top: 20px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.auth-signup-link a {
    color: #6ED4BE;
    text-decoration: none;
    font-weight: 600;
}

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

/* App Download Section */
.app-download-section {
    margin-top: 32px;
    text-align: center;
}

.download-text {
    margin-bottom: 20px;
}

.download-title {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 4px;
}

.download-subtitle {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    transition: transform 0.2s ease;
    text-decoration: none;
    position: relative;
}

.download-btn::after {
    content: 'Coming Soon';
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 8px;
    position: absolute;
    top: 3px;
    left: 60%;
    transform: translateX(-60%);
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

@media (max-width: 480px) {

    .download-title,
    .download-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .download-buttons {
        gap: 8px;
    }

    .download-btn img {
        height: 36px;
    }
}