/* Auth pages - RTL, minimalist centered card using brand variables from app.css */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--app-black-light-6), var(--app-green-light-4));
}

.auth-brand {
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
}

.auth-brand img {
    height: 32px;
    width: auto;
}

.auth-card {
    background: var(--app-black-light-6);
    background: var(--app-black-light-6);
    background: var(--app-black-light-6);
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
}

.auth-header {
    text-align: center;
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--app-black);
}

.oauth-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    height: 46px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.2s ease, transform 0.05s ease;
}

.oauth-btn:active { transform: translateY(1px); }

.oauth-google {
    background: #FFFFFF;
    color: var(--app-black);
    border: 1px solid var(--app-black-light-5);
}

.oauth-google:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.oauth-google-icon { width: 20px; height: 20px; }

.auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--app-black-light-5);
}

.auth-separator span {
    color: var(--app-black-light-2);
    font-size: 14px;
}

.form-label { font-weight: 600; color: var(--app-black); }

.form-control {
    border-radius: 10px;
    padding: 10px 12px;
}

.form-control:focus {
    border-color: var(--app-green);
    box-shadow: 0 0 0 3px rgba(0, 131, 62, 0.15);
}

.password-field { position: relative; }

.password-input-wrapper { position: relative; }

.password-input-wrapper input.form-control {
    padding-left: 44px; /* make room for the eye icon on RTL */
}

.password-toggle {
    position: absolute;
    left: 12px; /* RTL: eye on the left */
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    width: 36px;
    border-radius: 8px;
    border: 1px solid var(--app-black-light-5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: var(--app-black-light-2);
}

.password-toggle.active { color: var(--app-green); border-color: var(--app-green); }

.auth-primary-btn {
    background: var(--app-green);
    border: none;
    color: #FFFFFF;
    height: 46px;
    border-radius: 10px;
    font-weight: 700;
}

.auth-primary-btn:hover { filter: brightness(0.96); }

.auth-link {
    color: var(--app-black-light-2);
    text-decoration: none;
}

.auth-link:hover { color: var(--app-black-light-1); }

.auth-link-underline { text-decoration: underline; color: var(--app-green); }

.auth-footer {
    margin-top: 16px;
    display: grid;
    gap: 6px;
    justify-items: center;
    color: var(--app-black-light-2);
    font-size: 14px;
}

@media (max-width: 420px) {
    .auth-card { padding: 22px 18px; }
}
