/* WeZimplify CRM - Authentication pages
   Shared by login.php, forgot_password.php and reset_password.php.
   Depends on the tokens in master.css. */

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-app);
    color: var(--text-primary);
    background-image: radial-gradient(circle at 50% 50%, rgba(209, 242, 105, 0.03) 0%, transparent 50%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    /* Glassmorphism */
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand {
    justify-content: center;
    align-items: center;
    width: auto;
    margin: 0 auto 0.5rem;
}

.brand-logo {
    width: 200px;
    max-width: 70%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.9rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-brand-lime);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(209, 242, 105, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--color-brand-lime);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 242, 105, 0.3);
}

.error-message {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Lime text on a lime background is unreadable, so success uses a green
   that holds up in both themes rather than the brand lime. */
.success-message {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.25);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Body copy on the forgot/reset pages */
.auth-intro {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
    text-align: center;
}

/* Actions row under the submit button: link (left) + theme toggle (right) */
.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.forgot-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}
