/* auth page styles */

.auth-body {
    background: #111111;
    font-family: 'Courier New', monospace;
    margin: 0;
    min-height: 100vh;
    padding: 0;
}

/* main container */
.auth-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 60px 20px 20px;
}

/* logo */
.auth-logo {
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    text-align: left;
}

.auth-logo-svg {
    width: 100%;
    height: auto;
}

.auth-logo-text-svg {
    font-size: 40px;
    font-weight: normal;
    letter-spacing: 1px;
}

/* cards container */
.auth-cards-container {
    max-width: 420px;
    position: relative;
    width: 100%;
}

/* auth card */
.auth-card {
    padding: 48px;
}

.auth-card-hidden {
    display: none;
}

#signup-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.auth-card-header {
    margin-bottom: 0;
}

.auth-verify-text {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.auth-verify-text strong {
    color: #e2e8f0;
}

/* form styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

.auth-input {
    background: #222222;
    border: 1px solid #333333;
    box-sizing: border-box;
    color: #f8fafc;
    font-size: 16px;
    height: 48px;
    padding: 0 16px;
    width: 100%;
}

.auth-input:focus {
    background: #222222 !important;
    border: 1px solid #0ea5e9 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* button styles */
.auth-button {
    border: 1px solid #333333;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: normal;
    height: 48px;
    margin-top: 8px;
    width: 100%;
}

.auth-button-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: #f8fafc;
}

.auth-button-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
}

.auth-button-text {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

/* card footer */
.auth-card-footer {
    margin-top: 4px;
    text-align: center;
}

.auth-switch-text {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.auth-switch-link {
    align-items: center;
    background: none;
    border: none;
    color: #0ea5e9;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: normal;
    margin: -8px;
    min-height: 44px;
    padding: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-switch-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* error messages */
.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    color: #ef4444;
    font-size: 16px;
    font-weight: normal;
    margin-top: 4px;
    padding: 8px 12px;
}

/* loading states */
.auth-button.loading {
    pointer-events: none;
}

.auth-button.loading .auth-button-text {
    opacity: 0;
}

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

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

/* accessibility improvements */
.auth-input:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.auth-button:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* mobile responsiveness */
@media (max-width: 768px) {
    .auth-container {
        padding: 40px 20px 20px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-logo {
        margin-bottom: 8px;
    }
    
    .auth-logo-text-svg {
        font-size: 34px;
    }
    
    .auth-input {
        height: 44px;
        font-size: 16px;
    }
    
    .auth-button {
        height: 44px;
        font-size: 15px;
    }
    
    .auth-form-group {
        gap: 12px;
    }
    
    .auth-form {
        gap: 20px;
    }
}


/* prevent zoom on ios when focusing inputs */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .auth-input {
        font-size: 16px;
    }
}