/* Guest Layout */
.guest-page {
    min-height: 100vh;
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    font-family: 'Vazirmatn', sans-serif;
}

.guest-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
}

.guest-container {
    width: 100%;
    max-width: 430px;
}

.guest-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    text-decoration: none;
}

.guest-brand img {
    display: block;
    width: auto;
    height: 42px;
}

.guest-card {
    width: 100%;
    padding: 34px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.guest-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 11px;
}

/* Authentication Header */
.auth-form-page {
    width: 100%;
}

.auth-page-header {
    margin-bottom: 15px;
}

.auth-page-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.auth-page-header h1 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.5;
}

.auth-page-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
}

/* Authentication Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-field label {
    margin-bottom: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.auth-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.auth-field-header label {
    margin-bottom: 0;
}

.auth-field-header a {
    color: #64748b;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-field-header a:hover {
    color: #2563eb;
}

/* Authentication Input */
.auth-input {
    width: 100%;
    min-height: 47px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input::placeholder {
    color: #a1aab8;
}

.auth-input:hover {
    border-color: #cbd5e1;
}

.auth-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.auth-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Authentication Error */
.auth-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 11px;
    line-height: 1.7;
}

/* Authentication Status */
.login-status {
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 12px;
    line-height: 1.8;
}

/* Remember Me */
.login-options {
    display: flex;
    align-items: center;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}

.login-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Authentication Submit */
.auth-submit,
.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover,
.login-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.auth-submit:active,
.login-submit:active {
    transform: translateY(1px);
}

.auth-submit:focus-visible,
.login-submit:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.15);
    outline-offset: 2px;
}

.auth-submit:disabled,
.login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Login */
.login {
    width: 100%;
}

.login-header {
    margin-bottom: 15px;
}

.login-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.login-header h1 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.5;
}

.login-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
}

.login-field {
    display: flex;
    flex-direction: column;
}

.login-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.login-field label {
    margin-bottom: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.login-field-header label {
    margin-bottom: 0;
}

.login-field-header a,
.login-forgot {
    color: #64748b;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-field-header a:hover,
.login-forgot:hover {
    color: #2563eb;
}

.login-input {
    width: 100%;
    min-height: 47px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input::placeholder {
    color: #a1aab8;
}

.login-input:hover {
    border-color: #cbd5e1;
}

.login-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.login-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 11px;
}

.login-submit {
    margin-top: 2px;
}

.login-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid #eef2f6;
    color: #94a3b8;
    font-size: 11px;
}

.login-register a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.login-register a:hover {
    color: #1d4ed8;
}

/* Authentication Back Link */
.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.auth-back span {
    color: #94a3b8;
    font-size: 11px;
}

.auth-back a {
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back a:hover {
    color: #1d4ed8;
}

/* Verification */
.auth-success {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 12px;
    line-height: 1.8;
}

.auth-verification-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.auth-verification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
}

.auth-verification-icon svg {
    width: 20px;
    height: 20px;
}

.auth-verification-info strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.auth-verification-info span {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.8;
}

.auth-verification-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-verification-actions form {
    width: 100%;
}

.auth-verification-actions .auth-submit {
    margin-top: 0;
}

.auth-logout {
    width: 100%;
    min-height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #64748b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.auth-logout:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.auth-logout:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.12);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .guest-layout {
        padding: 20px 14px;
    }

    .guest-container {
        max-width: 100%;
    }

    .guest-card {
        padding: 27px 21px;
        border-radius: 14px;
    }

    .guest-brand img {
        height: 38px;
    }

    .guest-footer {
        flex-direction: column;
        gap: 3px;
    }

    .auth-page-header h1,
    .login-header h1 {
        font-size: 23px;
    }

    .auth-verification-info {
        padding: 12px;
    }
}