/* ====================================
   Auth Forms Styling - Login & Register
   ==================================== */

:root {
    --auth-primary: #0066cc;
    --auth-primary-hover: #0052a3;
    --auth-bg: #f8f9fa;
    --auth-card-bg: #ffffff;
    --auth-border: #dee2e6;
    --auth-text: #212529;
    --auth-text-muted: #6c757d;
    --auth-error: #dc3545;
    --auth-success: #28a745;
    --auth-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --auth-radius: 8px;
}

/* Auth page layout */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--auth-bg);
}

/* Auth card */
.auth-card {
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

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

.auth-card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 8px 0;
}

.auth-card-subtitle {
    font-size: 15px;
    color: var(--auth-text-muted);
    margin: 0;
}

/* Form groups */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.auth-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--auth-border);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.auth-form-input::placeholder {
    color: var(--auth-text-muted);
}

/* Input hints */
.auth-input-hint {
    display: block;
    font-size: 13px;
    color: var(--auth-text-muted);
    margin-top: 6px;
}

/* Checkbox */
.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: 14px;
    color: var(--auth-text);
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label a {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--auth-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Links */
.auth-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--auth-text-muted);
}

.auth-link a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer text */
.auth-card-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
}

/* Error messages */
.auth-error-message {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--auth-error);
    color: var(--auth-error);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Success messages */
.auth-success-message {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--auth-success);
    color: var(--auth-success);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Warning messages (email verification) */
.auth-warning-message {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.auth-warning-icon {
    font-size: 24px;
    line-height: 1;
}

.auth-warning-content {
    flex: 1;
}

.auth-warning-content strong {
    display: block;
    color: #92400e;
    font-size: 15px;
    margin-bottom: 4px;
}

.auth-warning-content p {
    color: #a16207;
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.auth-warning-link {
    display: inline-block;
    color: #d97706;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-warning-link:hover {
    color: #92400e;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }

    .auth-card-title {
        font-size: 24px;
    }
}
