/* =============================================================================
   StudioColor SaaS — Minimalist & Strict Authentication UI Styles
   ============================================================================= */

.auth-overlay {
    position: fixed;
    inset: 0 0 calc(-1 * env(safe-area-inset-bottom)) 0;
    width: 100%;
    min-height: -webkit-fill-available;
    min-height: var(--app-vh-safe, 100dvh);
    height: var(--app-vh-safe, 100dvh);
    padding: env(safe-area-inset-top) 1.25rem env(safe-area-inset-bottom) 1.25rem;
    box-sizing: border-box;
    background: rgba(5, 15, 30, 0.82);
    backdrop-filter: blur(32px) saturate(130%);
    -webkit-backdrop-filter: blur(32px) saturate(130%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    background: rgba(18, 26, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-input:focus {
    border-color: #ec7f13;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(236, 127, 19, 0.25);
}

.auth-btn-primary {
    height: 46px;
    background: #ec7f13;
    color: #ffffff;
    border: none;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(236, 127, 19, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn-primary:hover {
    background: #f08922;
    box-shadow: 0 6px 18px rgba(236, 127, 19, 0.45);
}

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

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-error-banner {
    padding: 0.75rem 1rem;
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.35);
    border-radius: 0.75rem;
    color: #ff6961;
    font-size: 0.82rem;
    font-weight: 600;
    display: none;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.auth-success-banner {
    padding: 0.75rem 1rem;
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.35);
    border-radius: 0.75rem;
    color: #30d158;
    font-size: 0.82rem;
    font-weight: 600;
    display: none;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
    text-align: center;
}

.auth-link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #ec7f13;
}
