/* public/css/auth.css */

:root {
    --auth-bg-1: #07111f;
    --auth-bg-2: #0b2440;
    --auth-bg-3: #0f3a5f;

    --auth-card: rgba(255, 255, 255, 0.96);
    --auth-card-border: rgba(255, 255, 255, 0.65);

    --auth-primary: #0099d8;
    --auth-primary-dark: #006fa3;
    --auth-accent: #42c8f5;

    --auth-text: #111827;
    --auth-muted: #6b7280;
    --auth-border: #dbe5ef;

    --auth-danger-bg: #fff1f2;
    --auth-danger-text: #be123c;

    --auth-success-bg: #ecfdf5;
    --auth-success-text: #047857;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 85% 12%, rgba(66, 200, 245, 0.32), transparent 32%),
        radial-gradient(circle at 10% 90%, rgba(0, 153, 216, 0.28), transparent 28%),
        linear-gradient(135deg, var(--auth-bg-1) 0%, var(--auth-bg-2) 52%, var(--auth-bg-3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 24px;
}

.auth-bg-shape {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.38;
    filter: blur(12px);
}

.auth-bg-shape-1 {
    width: 340px;
    height: 340px;
    background: #0099d8;
    top: -140px;
    right: -100px;
}

.auth-bg-shape-2 {
    width: 280px;
    height: 280px;
    background: #42c8f5;
    bottom: -120px;
    left: -85px;
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.auth-card {
    width: 100%;
    background: var(--auth-card);
    border: 1px solid var(--auth-card-border);
    border-radius: 30px;
    padding: 34px;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    animation: authCardIn 0.45s ease both;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* شعار الشركة */
.auth-logo-box {
    background: #ffffff;
    border: 1px solid rgba(219, 229, 239, 0.95);
    border-radius: 24px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(15, 39, 66, 0.10);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* حتى لو الصورة فيها خلفية شطرنج، الصندوق الأبيض يخليها مرتبة */
.auth-logo {
    width: 100%;
    max-width: 270px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-header h1 {
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-alert {
    border: 0;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 18px;
}

.alert-danger.auth-alert {
    background: var(--auth-danger-bg);
    color: var(--auth-danger-text);
}

.alert-success.auth-alert {
    background: var(--auth-success-bg);
    color: var(--auth-success-text);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field label {
    display: block;
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.72;
    z-index: 2;
}

.auth-input {
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--auth-border);
    background: #f8fafc;
    color: var(--auth-text);
    font-size: 15px;
    padding-right: 48px;
    padding-left: 48px;
    transition: 0.2s ease;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input:focus {
    background: #ffffff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(0, 153, 216, 0.14);
    outline: none;
}

.auth-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    z-index: 3;
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
}

.auth-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    box-shadow: 0 14px 28px rgba(0, 153, 216, 0.28);
    transition: 0.2s ease;
    margin-top: 4px;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 153, 216, 0.36);
    background: linear-gradient(135deg, var(--auth-primary-dark), var(--auth-primary));
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--auth-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-footer span {
    font-size: 13px;
    font-weight: 700;
}

.auth-footer small {
    font-size: 12px;
}

@media (max-width: 576px) {
    body.auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .auth-logo-box {
        padding: 14px 16px;
        border-radius: 20px;
    }

    .auth-logo {
        max-width: 230px;
    }

    .auth-header h1 {
        font-size: 24px;
    }
}
/* =========================================================
   Horizon Android app login design - edit this section freely
   ========================================================= */
body.hzn-mobile-layout.is-guest {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 8%, rgba(56, 189, 248, .22), transparent 34%),
        radial-gradient(circle at 92% 86%, rgba(37, 99, 235, .18), transparent 32%),
        linear-gradient(155deg, #f7fbff 0%, #eaf4ff 52%, #dcecff 100%);
}

body.hzn-mobile-layout.is-guest .hzn-mobile-content {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
}

.hzn-app-login {
    position: relative;
    width: min(430px, 100%);
    margin: 0 auto;
    padding: 32px 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 34px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 28px 70px rgba(30, 64, 175, .18);
    text-align: center;
    backdrop-filter: blur(18px);
}

.hzn-app-login::before {
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    content: "";
    background: linear-gradient(90deg, #38bdf8, #1475e6 48%, #123b8f);
}

.hzn-login-brand {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    margin: 2px auto 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 34px rgba(18, 78, 166, .20), inset 0 0 0 1px rgba(59, 130, 246, .10);
}

.hzn-login-brand img {
    width: 92px;
    height: 92px;
    display: block;
    object-fit: contain;
    border-radius: 25px;
}

.hzn-login-eyebrow {
    margin: 0 0 5px;
    color: #1768c9;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .2px;
}

.hzn-app-login h1 {
    margin: 0;
    color: #102a56;
    font-size: clamp(27px, 7vw, 32px);
    font-weight: 950;
}

.hzn-login-copy {
    max-width: 350px;
    margin: 10px auto 20px;
    color: #60718d;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.8;
}

.hzn-login-card {
    display: grid;
    gap: 15px;
    padding: 20px;
    border: 1px solid #dceaff;
    border-radius: 25px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 34px rgba(27, 78, 145, .10);
    text-align: right;
}

.hzn-login-card label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #17345f;
    font-size: 13px;
    font-weight: 900;
}

.hzn-login-card input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #cbdcf2;
    border-radius: 16px;
    outline: 0;
    background: #f7fbff;
    color: #102a56;
    font-size: 17px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.hzn-login-card input:focus {
    border-color: #2583e8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 131, 232, .13);
}

.hzn-login-card button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #168eea 0%, #1768ce 52%, #123f98 100%);
    box-shadow: 0 13px 25px rgba(23, 104, 206, .28);
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hzn-login-card button:active {
    transform: translateY(1px) scale(.995);
    box-shadow: 0 8px 18px rgba(23, 104, 206, .24);
}

.hzn-login-web {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    color: #1768c9;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.hzn-login-web::before {
    content: "↗";
    margin-left: 7px;
    font-size: 16px;
}

.hzn-app-alert {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 900;
}

.hzn-app-alert-danger {
    color: #9f2d25;
    border: 1px solid #ffcfc9;
    background: #fff2f0;
}

@media (max-width: 380px) {
    .hzn-app-login {
        padding: 27px 15px 20px;
        border-radius: 28px;
    }

    .hzn-login-card {
        padding: 16px;
    }

    .hzn-login-brand {
        width: 92px;
        height: 92px;
    }

    .hzn-login-brand img {
        width: 82px;
        height: 82px;
    }
}
