/* Variables provided by custom-base.css */
:root {
    --border-radius-lg: 16px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Auth page - centered layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    padding: 40px 20px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
}

.auth-card-body {
    padding: 40px 36px;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo img {
    max-height: 42px;
}

/* Titles */
.auth-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 24px;
}

/* Google button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.google-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #ccc;
    color: #333;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

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

.auth-divider span {
    padding: 0 14px;
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
}

/* Form fields */
.input-block {
    margin-bottom: 18px;
}

.form-control-label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    color: #374151;
}

.form-control {
    height: 44px;
    padding: 8px 14px;
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 97, 134, 0.12);
    outline: none;
}

/* Password toggle */
.pass-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 13px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #374151;
}

/* Validation */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #dc3545;
}

.invalid-feedback.show {
    display: block;
}

/* Forgot password */
.forgot {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

/* Alerts */
.alert {
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    font-size: 13px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 3px solid #dc3545;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 3px solid #28a745;
}

/* Submit button */
.btn-start {
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 97, 134, 0.3);
}

.btn-spinner {
    display: none;
    margin-right: 8px;
}

.btn.loading .btn-spinner {
    display: inline-block;
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

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

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* Back to home */
.auth-back-link {
    margin-top: 20px;
}

.auth-back-link a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.auth-back-link a:hover {
    color: var(--primary-color);
}

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

    .auth-card-body {
        padding: 28px 24px;
    }

    .auth-title {
        font-size: 20px;
    }
}