/* Malum Auth Pages — matches landing.html dark theme */

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

html,
body {
    height: 100%;
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Wrapper ── */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

/* ── Card ── */
.auth-card {
    background: #1c1c1c;
    border: 1px solid #262626;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
}

/* ── Logo ── */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    width: 52px;
    height: auto;
}

/* ── Header ── */
.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.auth-header .auth-links {
    font-size: 0.8125rem;
    color: #b3b3b3;
}

.auth-header .auth-links a {
    color: #18c4da;
    text-decoration: none;
    font-weight: 400;
}

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

/* ── Flash messages ── */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.auth-alert-danger {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(24, 196, 218, 0.08);
    border: 1px solid rgba(24, 196, 218, 0.3);
    color: #18c4da;
}

/* ── Form ── */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    font-size: 0.8125rem;
    color: #b3b3b3;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    background: #262626;
    border: 1px solid #333333;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Lexend', sans-serif;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.auth-form-group input[type="text"]::placeholder,
.auth-form-group input[type="email"]::placeholder,
.auth-form-group input[type="password"]::placeholder {
    color: #555555;
}

.auth-form-group input[type="text"]:focus,
.auth-form-group input[type="email"]:focus,
.auth-form-group input[type="password"]:focus {
    border-color: #18c4da;
}

/* Compatibility with checkpass() which adds is-valid / is-invalid */
.auth-form-group input.is-valid {
    border-color: #18c4da !important;
}

.auth-form-group input.is-invalid {
    border-color: #f87171 !important;
}

.auth-form-hint {
    font-size: 0.75rem;
    color: #666666;
    margin-top: 0.375rem;
}

/* ── Submit button ── */
.auth-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.75rem;
    background: #18c4da;
    color: #000000;
    border: none;
    border-radius: 82px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.auth-btn:hover {
    opacity: 0.88;
}

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 1.5rem 0;
    color: #b3b3b3;
    font-size: 0.8125rem;
}

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

/* ── Social ── */
.auth-social {
    text-align: center;
}

/* ── Captcha wrapper ── */
.auth-captcha {
    margin-bottom: 1.25rem;
}

.auth-captcha label {
    display: block;
    font-size: 0.8125rem;
    color: #b3b3b3;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* ── Deactivated page ── */
.auth-deactivated-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-deactivated-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.75rem;
}

.auth-deactivated-body {
    font-size: 0.9375rem;
    color: #b3b3b3;
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }
}
