/* Auth pages - Dark mode professional design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #12141a;
    color: #e4e6eb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.auth-card {
    background: #1a1d23;
    border: 1px solid #2f3339;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.auth-header {
    padding: 1.5rem 2rem 1rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e4e6eb;
}

.auth-body {
    padding: 1rem 2rem 1.5rem;
}

.auth-footer {
    padding: 0 2rem 1.5rem;
    text-align: center;
}

/* Form elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #b8bac0;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #22262e;
    border: 1px solid #2f3339;
    border-radius: 6px;
    color: #e4e6eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90a4;
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.2);
}

.form-group input::placeholder {
    color: #8a8d93;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

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

.btn-primary {
    background-color: #4a90a4;
    color: #fff;
}

.btn-primary:hover {
    background-color: #5ba3b8;
}

.btn-primary:disabled {
    background-color: #3d5a66;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    color: #4a90a4;
    border: 1px solid #4a90a4;
}

.btn-secondary:hover {
    background-color: rgba(74, 144, 164, 0.15);
}

/* Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.message-error {
    background-color: rgba(198, 40, 40, 0.15);
    color: #ef5350;
    border: 1px solid rgba(198, 40, 40, 0.3);
}

.message-success {
    background-color: rgba(46, 125, 50, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.message:empty {
    display: none;
}

/* Links */
.auth-link {
    color: #4a90a4;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-link:hover {
    text-decoration: underline;
    color: #5ba3b8;
}

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

.btn.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 0.5rem;
    }

    .auth-header,
    .auth-body,
    .auth-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
