
/* ==========================================================================
   Authentication Portal
   Static presentation only. JavaScript continues to control dynamic states
   such as tab visibility, alerts, and password visibility.
   ========================================================================== */
.auth-portal {
    min-height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.15), transparent 60%), radial-gradient(circle at bottom left, rgba(79, 172, 254, 0.1), transparent 60%), #060911;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    padding: 2.25rem;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.2);
}

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

.auth-brand-logo-wrap {
    display: inline-flex;
    margin-bottom: 0.5rem;
}

.auth-brand-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.8));
}

.auth-brand-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.auth-brand-accent {
    color: #00f2fe;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #334155;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab--active {
    color: #f1f5f9;
    font-weight: 700;
    border-bottom: 2px solid #00f2fe;
}

.auth-tab--inactive {
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.auth-form {
    flex-direction: column;
}

.auth-form--login {
    display: flex;
    gap: 1rem;
}

.auth-form--signup {
    display: none;
    gap: 0.85rem;
}

.auth-field {
    width: 100%;
}

.auth-field-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.auth-field-column {
    flex: 1;
}

.auth-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-label--inline {
    margin: 0;
}

.auth-password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.auth-forgot-link {
    color: #00f2fe;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-password-control {
    position: relative;
    width: 100%;
}

.auth-input,
.auth-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    box-sizing: border-box;
    background: #090d16;
    color: #f1f5f9;
    border: 1px solid #334155;
    border-radius: 6px;
    outline: none;
    font-size: 0.85rem;
}

.auth-input--password {
    padding-right: 2.5rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    transform: translateY(-50%);
    background: none;
    color: #94a3b8;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-custom-company-input {
    display: none;
    margin-top: 0.4rem;
    color: #00f2fe;
}

.auth-special-option {
    color: #00f2fe;
    font-weight: 800;
}

.auth-alert {
    display: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.auth-alert--success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.auth-password-match {
    display: none;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.auth-button {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.auth-button--primary {
    margin-top: 0.3rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #00f2fe);
    color: #060911;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.auth-button--secondary {
    margin-top: 0.5rem;
    padding: 0.65rem;
    background: rgba(30, 41, 59, 0.8);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.4);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-field-row {
        flex-direction: column;
    }

    .auth-field-column {
        width: 100%;
    }
}
