@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    --black: #09090d;
    --black-light: #15151d;
    --purple: #6d28d9;
    --purple-light: #8b5cf6;
    --purple-dark: #451a83;
    --gold: #d4af37;
    --gold-light: #f3d675;
    --white: #ffffff;
    --muted: #aaa6b3;
    --danger: #ff6b6b;
    --border: rgba(212, 175, 55, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Cairo", sans-serif;
    color: var(--white);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(109, 40, 217, 0.3),
            transparent 33%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(212, 175, 55, 0.15),
            transparent 30%
        ),
        linear-gradient(135deg, #050507 0%, #11101a 48%, #09070f 100%);
}

body::before,
body::after {
    position: fixed;
    content: "";
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}

body::before {
    top: -130px;
    right: -90px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow:
        0 0 90px rgba(212, 175, 55, 0.08),
        inset 0 0 90px rgba(109, 40, 217, 0.09);
}

body::after {
    bottom: -180px;
    left: -130px;
    width: 430px;
    height: 430px;
    background: rgba(109, 40, 217, 0.08);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px;
}

.login-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(25, 24, 34, 0.96),
            rgba(9, 9, 14, 0.97)
        );
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(109, 40, 217, 0.12);
    backdrop-filter: blur(20px);
}

.login-card::before {
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        var(--purple-light),
        transparent
    );
}

.login-card::after {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 190px;
    height: 190px;
    content: "";
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.12);
    filter: blur(25px);
    pointer-events: none;
}

.login-header {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    text-align: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border: 1px solid rgba(243, 214, 117, 0.6);
    border-radius: 22px;
    color: #0b0910;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold) 48%,
        var(--purple-light)
    );
    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.2),
        0 0 0 6px rgba(212, 175, 55, 0.05);
    transform: rotate(-3deg);
}

.login-header h1 {
    margin-bottom: 7px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    background: linear-gradient(
        90deg,
        var(--white),
        var(--gold-light)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-header p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.login-alert {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 107, 107, 0.28);
    border-radius: 12px;
    color: #ffc7c7;
    font-size: 13px;
    background: rgba(255, 107, 107, 0.08);
}

.login-alert ul {
    margin: 0;
    padding-inline-start: 20px;
}

.login-alert li + li {
    margin-top: 5px;
}

.login-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e8e5ec;
    font-size: 13px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    z-index: 1;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 7px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.07);
    pointer-events: none;
}

[dir="rtl"] .input-icon {
    right: 16px;
    left: auto;
}

.input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 54px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    color: var(--white);
    caret-color: var(--gold);
    background: rgba(255, 255, 255, 0.045);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

[dir="rtl"] .input-wrapper input {
    padding: 0 54px 0 16px;
}

.input-wrapper input::placeholder {
    color: #726e7c;
}

.input-wrapper input:hover {
    border-color: rgba(212, 175, 55, 0.26);
    background: rgba(255, 255, 255, 0.065);
}

.input-wrapper input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.08),
        0 8px 25px rgba(109, 40, 217, 0.11);
    transform: translateY(-1px);
}

.input-wrapper:focus-within .input-icon {
    color: var(--white);
    border-color: var(--purple-light);
    background: var(--purple);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 22px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    width: 17px;
    height: 17px;
    accent-color: var(--purple-light);
    cursor: pointer;
}

.login-button {
    position: relative;
    width: 100%;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid rgba(243, 214, 117, 0.48);
    border-radius: 13px;
    color: #0b0810;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(
        100deg,
        var(--gold-light),
        var(--gold) 48%,
        var(--purple-light)
    );
    box-shadow:
        0 14px 30px rgba(109, 40, 217, 0.18),
        0 8px 20px rgba(212, 175, 55, 0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.login-button::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: skewX(-22deg);
    transition: left 0.65s ease;
}

.login-button:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px rgba(109, 40, 217, 0.25),
        0 10px 25px rgba(212, 175, 55, 0.18);
}

.login-button:hover::before {
    left: 140%;
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #7f7a88;
    font-size: 12px;
}

.login-footer a {
    color: var(--gold-light);
    font-weight: 600;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.login-footer a:hover {
    color: var(--purple-light);
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .login-page {
        align-items: flex-start;
        padding: 20px 13px;
    }

    .login-card {
        padding: 28px 21px;
        border-radius: 19px;
    }

    .login-logo {
        width: 63px;
        height: 63px;
        border-radius: 18px;
        font-size: 22px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}
.success-alert {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

.forgot-password {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--purple-light);
}
.auth-divider {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 10px;
}
.google-button {
  padding: 8px;
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  width: 100%;
}