@import url("/assets/css/iranyekan-font-face.css");

:root {
    --betanic-dark: #080a3c;
    --betanic-orange: #ed6d57;
    --betanic-bg: #fbfbf9;
    --betanic-white: #ffffff;
    --text-main: #333333;
    --text-muted: #777777;
    --border-color: #e0e4f0;
    --danger-color: #dc3545;
}

* { box-sizing: border-box; font-family: "iranyekan", Tahoma, sans-serif; }

body.betanic-auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--betanic-dark) 0%, #141a5e 55%, var(--betanic-orange) 150%);
    padding: 20px;
    direction: rtl;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--betanic-white);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(8, 10, 60, 0.35);
    padding: 40px 32px;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-logo img { height: 42px; }
.auth-logo .brand-fallback {
    font-size: 22px;
    font-weight: 700;
    color: var(--betanic-dark);
    letter-spacing: 1px;
}
.auth-logo span.tagline { color: var(--text-muted); font-size: 13px; }

.auth-title { font-size: 18px; font-weight: 700; color: var(--betanic-dark); margin: 0 0 6px; text-align: center; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); text-align: center; margin: 0 0 26px; }

.betanic-field { margin-bottom: 18px; }
.betanic-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.betanic-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--betanic-bg);
    transition: border-color .15s, box-shadow .15s;
}
.betanic-field input:focus {
    outline: none;
    border-color: var(--betanic-orange);
    box-shadow: 0 0 0 3px rgba(237, 109, 87, .15);
    background: var(--betanic-white);
}
.betanic-field .error-text { color: var(--danger-color); font-size: 12px; margin-top: 6px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13px; }
.auth-row a { color: var(--betanic-orange); text-decoration: none; }
.auth-row label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); cursor: pointer; }

.btn-auth-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--betanic-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.btn-auth-submit:hover { opacity: .92; transform: translateY(-1px); }

.auth-alert {
    background: #fdeceb;
    border: 1px solid #f6c9c2;
    color: #a13327;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}
.auth-alert.success { background: #eaf7ee; border-color: #c6e9cf; color: #1e7a37; }

.auth-footer-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.auth-footer-link a { color: var(--betanic-dark); font-weight: 700; text-decoration: none; }

.role-hint {
    display: flex;
    gap: 8px;
    background: var(--betanic-bg);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    align-items: flex-start;
}
.role-hint i { color: var(--betanic-orange); font-size: 16px; }
