/* 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
   ========================================================= */
.hzn-app-login{width:min(420px,100%);margin:0 auto;padding:26px 14px;text-align:center}.hzn-login-brand{width:74px;height:74px;display:grid;place-items:center;margin:0 auto 12px;border-radius:26px;color:#fff;background:linear-gradient(135deg,#5b1027,#0f7f78);font-size:34px;font-weight:900;box-shadow:0 18px 42px rgba(91,16,39,.24)}.hzn-login-eyebrow{margin:0 0 6px;color:#0f7f78;font-size:12px;font-weight:900}.hzn-app-login h1{margin:0;color:#111827;font-size:28px;font-weight:900}.hzn-login-copy{margin:10px auto 20px;color:#667085;font-size:14px;line-height:1.8}.hzn-login-card{display:grid;gap:14px;padding:18px;border-radius:26px;background:#fff;text-align:right;box-shadow:0 18px 45px rgba(17,24,39,.12)}.hzn-login-card label{display:grid;gap:7px;margin:0;color:#111827;font-size:13px;font-weight:900}.hzn-login-card input{width:100%;min-height:54px;border:1px solid #d8e2ee;border-radius:18px;background:#f8fafc;color:#111827;padding:0 14px;font-size:17px}.hzn-login-card input:focus{outline:none;border-color:#0f7f78;box-shadow:0 0 0 4px rgba(15,127,120,.12)}.hzn-login-card button{width:100%;min-height:54px;border:0;border-radius:18px;color:#fff;background:linear-gradient(135deg,#5b1027,#0f7f78);font-size:16px;font-weight:900}.hzn-login-web{display:inline-flex;margin-top:16px;color:#21518d;font-size:13px;font-weight:900}.hzn-app-alert{margin:0 0 14px;padding:12px 14px;border-radius:16px;font-size:13px;font-weight:900}.hzn-app-alert-danger{color:#7a271a;background:#fff0ed;border:1px solid #ffd6cc}