@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800&display=swap");

html, body {
    background: #f3e6d4 url("../img/guide/login-bg.jpg") center / cover no-repeat fixed !important;
    min-height: 100%;
    font-family: Cairo, Tahoma, Arial, sans-serif !important;
}
footer {
    background: transparent !important;
    border: 0 !important;
    color: #6b3d2a !important;
    box-shadow: none !important;
}
footer a { color: #6d1b2a !important; }

.sm-access {
    direction: rtl;
    max-width: 1120px;
    margin: 8px auto 90px;
    padding: 8px 16px 24px;
    font-family: Cairo, Tahoma, Arial, sans-serif;
}
.sm-access, .sm-access span, .sm-access a, .sm-access h1, .sm-access h2, .sm-access p, .sm-access h6 {
    color: #4a1d22;
}
.sm-access-title { text-align: center; margin: 4px 0 16px; }
.sm-access-title h1 {
    font-size: 32px;
    font-weight: 800;
    color: #5a2a18 !important;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.sm-access-title h1:before,
.sm-access-title h1:after {
    content: "";
    width: 72px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath fill='none' stroke='%23c9a227' stroke-width='1.4' d='M2 6h22 M58 6h20 M30 6c4-6 16-6 20 0'/%3E%3Ccircle cx='40' cy='6' r='2.2' fill='%23c9a227'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sm-access-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 12px;
    align-items: center;
}
.sm-mary { text-align: center; padding-top: 0; }
.sm-mary img {
    height: 620px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    background: none !important;
    border: 0;
    border-radius: 0;
    filter: drop-shadow(0 12px 20px rgba(90,42,24,.18));
}
.sm-card {
    background: #fbf6ee;
    border: 2px solid #e3cc9a;
    border-radius: 28px;
    padding: 24px 24px 18px;
    box-shadow: 0 16px 36px rgba(90,42,24,.12);
}
.sm-avatar {
    width: 74px;
    height: 74px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #6d1b2a;
    color: #f7efe6 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.sm-avatar span, .sm-avatar i { color: #f7efe6 !important; }
.sm-card h2 { text-align: center; font-size: 24px; font-weight: 800; margin: 0 0 6px; color: #3d141c; }
.sm-card .sm-sub { text-align: center; color: #7a5a52; font-size: 14px; margin-bottom: 10px; }
.sm-dot { width: 7px; height: 7px; border-radius: 50%; background: #c9a227; margin: 0 auto 14px; }
.sm-field {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #ead7b8;
    border-radius: 16px;
    min-height: 52px;
    padding: 0 14px;
    margin-bottom: 10px;
}
.sm-field .sm-ico { color: #6d1b2a !important; font-size: 18px; margin-left: 10px; }
.sm-field input,
.sm-field select {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1;
    height: 48px;
    text-align: right;
    font-size: 16px;
    font-family: Cairo, Tahoma, sans-serif;
    color: #3d141c;
    width: 100%;
}
.sm-login-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff !important;
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(90deg, #6d1b2a 0%, #1e3a66 100%);
    box-shadow: 0 8px 18px rgba(30,58,102,.22);
    margin: 6px 0 12px;
}
.sm-login-btn:hover { color: #fff !important; opacity: .95; }
.sm-reg-btn, .sm-guide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1.6px solid #e3cc9a;
    background: #fffdf8;
    color: #4a1d22 !important;
    font-weight: 800;
    margin-bottom: 10px;
}
.sm-guide-btn { background: transparent; border-color: #c9a227; color: #6d1b2a !important; }
.sm-mini { text-align: center; margin: 4px 0 10px; }
.sm-mini a { color: #8a5a3a !important; font-size: 13px; font-weight: 700; }
.sm-note { text-align: center; margin-top: 14px; color: #6b3d2a; font-weight: 700; }
.sm-access .alert { border-radius: 12px; text-align: right; }

.sm-loader {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(251, 246, 238, .97) 0%, rgba(243, 230, 212, .96) 52%, rgba(228, 208, 180, .96) 100%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility .45s ease;
}
.sm-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.sm-loader-panel {
    width: min(380px, 100%);
    text-align: center;
    background: linear-gradient(180deg, #fffdf8 0%, #f6ecdf 100%);
    border: 2px solid #e3cc9a;
    border-radius: 28px;
    padding: 34px 28px 26px;
    box-shadow: 0 24px 56px rgba(90, 42, 24, .22);
    animation: sm-loader-rise .55s ease both;
}
.sm-loader-medallion {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 16px;
}
.sm-loader-medallion:after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, .32), transparent 68%);
    animation: sm-loader-glow 1.8s ease-in-out infinite;
    z-index: 0;
}
.sm-ring {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}
.sm-ring-a {
    inset: 0;
    border: 2.5px solid transparent;
    border-top-color: #c9a227;
    border-right-color: #ead7a4;
    animation: sm-spin 1.15s linear infinite;
}
.sm-ring-b {
    inset: 14px;
    border: 2px solid transparent;
    border-bottom-color: #6d1b2a;
    border-left-color: rgba(109, 27, 42, .35);
    animation: sm-spin 1.7s linear infinite reverse;
}
.sm-core {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #8d3144, #6d1b2a 62%, #4a1018);
    box-shadow: 0 8px 16px rgba(109, 27, 42, .28), inset 0 0 0 2px rgba(201, 162, 39, .6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sm-cross {
    position: relative;
    width: 12px;
    height: 26px;
    border-radius: 2px;
    background: linear-gradient(180deg, #f3e2a4, #c9a227);
    box-shadow: 0 0 8px rgba(201, 162, 39, .45);
}
.sm-cross:before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 22px;
    height: 7px;
    margin-left: -11px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f3e2a4, #c9a227);
}
.sm-loader-flourish {
    width: 120px;
    height: 12px;
    margin: 0 auto 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath fill='none' stroke='%23c9a227' stroke-width='1.4' d='M2 6h22 M58 6h20 M30 6c4-6 16-6 20 0'/%3E%3Ccircle cx='40' cy='6' r='2.2' fill='%23c9a227'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sm-loader-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sm-loader-heading h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #5a2a18 !important;
    letter-spacing: 0;
}
.sm-ellipsis {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 16px;
}
.sm-ellipsis i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a227;
    animation: sm-dot 1s infinite ease-in-out;
}
.sm-ellipsis i:nth-child(2) { animation-delay: .16s; }
.sm-ellipsis i:nth-child(3) { animation-delay: .32s; }
.sm-loader-sub {
    margin: 8px 0 0;
    color: #7a5a52 !important;
    font-size: 14px;
    font-weight: 700;
}
.sm-loader-track {
    direction: ltr;
    position: relative;
    height: 5px;
    margin-top: 20px;
    border-radius: 99px;
    background: #ead7b8;
    overflow: hidden;
}
.sm-loader-track span {
    position: absolute;
    top: 0;
    left: -42%;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6d1b2a, #c9a227 55%, #1e3a66);
    animation: sm-slide 1.35s linear infinite;
    animation-direction: normal;
}
@keyframes sm-spin { to { transform: rotate(360deg); } }
@keyframes sm-loader-glow {
    0%, 100% { opacity: .55; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1); }
}
@keyframes sm-loader-rise {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes sm-dot {
    0%, 80%, 100% { opacity: .3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-4px); }
}
@keyframes sm-slide {
    0% { left: -42%; }
    100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .sm-ring-a, .sm-ring-b, .sm-loader-medallion:after,
    .sm-ellipsis i, .sm-loader-track span, .sm-loader-panel {
        animation: none;
    }
}
@media (max-width: 900px) {
    .sm-access-grid { grid-template-columns: 1fr; }
    .sm-mary { order: -1; }
    .sm-mary img { height: 300px !important; }
    .sm-access-title h1 { font-size: 22px; }
    .sm-access-title h1:before, .sm-access-title h1:after { width: 36px; }
}
