/**
 * TycoSim v0.5 - Auth Pages CSS (Refined)
 * Clean, calm, professional design
 */

/* ==========================================================================
   AUTH LAYOUT
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--corp-space-xl);
    background: #0d1117;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(47, 129, 247, 0.06) 0%, transparent 60%);
    font-family: var(--corp-font);
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
}

/* ==========================================================================
   LOGO / BRANDING
   ========================================================================== */

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #58a6ff;
    letter-spacing: -0.02em;
}

.auth-logo-subtitle {
    font-size: 12px;
    color: #8b949e;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* ==========================================================================
   AUTH CARD
   ========================================================================== */

.auth-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #e6edf3;
    margin: 0 0 8px 0;
}

.auth-card-subtitle {
    font-size: 14px;
    color: #8b949e;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #e6edf3;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--corp-font);
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.auth-input::placeholder {
    color: #6e7681;
}

/* Input with icon */
.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
}

.auth-input-wrapper .auth-input {
    padding-left: 40px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.auth-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--corp-font);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-btn-primary {
    background: #238636;
    color: white;
}

.auth-btn-primary:hover {
    background: #2ea043;
}

.auth-btn-primary:active {
    background: #238636;
}

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

/* Loading state */
.auth-btn.loading {
    color: transparent;
    position: relative;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   LINKS & HELPERS
   ========================================================================== */

.auth-link {
    color: #58a6ff;
    text-decoration: none;
    font-size: 13px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #21262d;
}

.auth-footer-text {
    font-size: 14px;
    color: #8b949e;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #21262d;
}

.auth-divider-text {
    font-size: 12px;
    color: #6e7681;
    text-transform: uppercase;
}

/* Forgot Password */
.auth-forgot {
    display: block;
    text-align: right;
    margin-bottom: 20px;
    margin-top: -8px;
}

/* ==========================================================================
   MESSAGES
   ========================================================================== */

.auth-message {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-message-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.4);
    color: #f85149;
}

.auth-message-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.4);
    color: #3fb950;
}

/* ==========================================================================
   VERSION FOOTER
   ========================================================================== */

.auth-version {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: #6e7681;
}

.auth-version-number {
    color: #58a6ff;
}

/* ==========================================================================
   CONTAINER SWITCHING
   ========================================================================== */

.auth-container {
    display: none;
}

.auth-container.active {
    display: block;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-logo-text {
        font-size: 28px;
    }
}