/* Login Page Specific Styles */
.login-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    font-family: var(--font-main);
}

.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 5vh;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 60px -15px rgba(247, 147, 26, 0.3);
    width: 85%;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

.login-alert {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.login-alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--danger-light);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.login-alert-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 0.25rem;
}

.login-alert-text {
    font-size: 0.875rem;
    color: var(--danger-light);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-control::placeholder {
    color: rgba(139, 148, 158, 0.5);
    font-size: 0.85em;
}

@media (max-width: 640px) {
    .login-page {
        padding: 0.75rem;
    }

    .login-wrapper {
        flex: none;
        padding-top: 0.5rem;
    }

    .login-header {
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: center;
        text-align: center;
    }

    .login-logo {
        width: 2.25rem;
        height: 2.25rem;
        margin-bottom: 0;
        border-radius: 0.5rem;
        flex-shrink: 0;
    }

    .login-logo svg {
        width: 20px;
        height: 20px;
    }

    .login-title {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .login-subtitle {
        display: none;
    }

    .login-card {
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 10vh;
    }

    .login-form {
        gap: 0.5rem;
    }

    .form-group {
        margin-bottom: 0.25rem;
    }

    .form-group label {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }

    .form-control {
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
    }

    .btn-login {
        padding: 0.65rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .login-page .form-control::placeholder {
        font-size: 0.75em;
    }

    .login-footer {
        font-size: 0.75rem;
    }
}
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    color: white;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.btn-login:active {
    transform: scale(0.98);
}

.login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(13, 17, 23, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
