:root {
    --primary: #43b6c7;
    --primary-dark: #2697a8;
    --bg-dark: #08111f;
    --bg-dark-2: #0d1729;
    --surface: rgba(13, 22, 39, 0.70);
    --surface-strong: rgba(10, 18, 32, 0.88);
    --border: rgba(255, 255, 255, 0.10);
    --text: #f5fbff;
    --text-soft: #a4b4cb;
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.20);
    --transition: all .3s ease;
}

* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, rgba(67, 182, 199, 0.12), transparent 20%), radial-gradient(circle at bottom left, rgba(67, 182, 199, 0.10), transparent 18%), linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 48%, #091320 100%);
    overflow-x: hidden;
}

.login-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
}

.login-orb-1 {
    top: -80px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: rgba(67, 182, 199, 0.22);
}

.login-orb-2 {
    bottom: -90px;
    left: -40px;
    width: 280px;
    height: 280px;
    background: rgba(38, 151, 168, 0.16);
}

.login-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 34px 34px;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 42px;
    padding: 32px;
    max-width: 1440px;
    margin: 0 auto;
}

.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
}

.login-showcase {
    padding: 24px;
}

.login-brand {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 720px;
}

.login-brand__logo {
    width: 240px;
    object-fit: contain;
}

.login-brand__eyebrow,
.mini-label {
    display: inline-block;
    color: var(--primary);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 10px;
}

.login-brand h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.35;
    font-weight: 800;
}

.login-brand p {
    margin: 0;
    color: var(--text-soft);
    line-height: 2;
    font-size: 1.02rem;
    max-width: 640px;
}

.feature-list {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-item {
    border-radius: 24px;
    padding: 20px;
    min-height: 160px;
}

.feature-item__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(67,182,199,.18), rgba(67,182,199,.05));
    border: 1px solid rgba(67,182,199,.22);
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item h3,
.feature-item p {
    margin: 0;
}

.feature-item h3 {
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-soft);
    line-height: 1.8;
}

.login-panel {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 520px;
    border-radius: 32px;
    padding: 28px;
    background: var(--surface-strong);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-lg);
}

.login-card__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.login-card__logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(67,182,199,.18), rgba(67,182,199,.06));
    border: 1px solid rgba(67,182,199,.22);
}

    .login-card__logo-wrap img {
        width: 40px;
    }

.login-card__header h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
}

.login-card__header span {
    color: var(--text-soft);
    font-size: .95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-modern {
    font-weight: 700;
    color: #eafcff;
    font-size: .96rem;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #8fb9c3;
    font-size: 1rem;
    pointer-events: none;
}

.modern-input {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    color: var(--text);
    padding: 14px 48px 14px 48px;
    box-shadow: none;
}

    .modern-input:focus {
        background: rgba(255,255,255,.05);
        color: var(--text);
        border-color: rgba(67,182,199,.45);
        box-shadow: 0 0 0 .25rem rgba(67,182,199,.12);
    }

    .modern-input::placeholder {
        color: #7e93a8;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8ea1b5;
    width: 36px;
    height: 36px;
}

.login-actions-row {
    display: flex;
    justify-content: flex-start;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-submit-btn {
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 18px 28px rgba(38, 151, 168, 0.28);
}

.register-box {
    margin-top: 8px;
    text-align: center;
    color: var(--text-soft);
    font-size: .95rem;
}

    .register-box a {
        color: var(--primary);
        font-weight: 700;
        margin-inline-start: 8px;
        text-decoration: none;
    }

.login-card__footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    color: var(--text-soft);
    font-size: .88rem;
}

.validation-text {
    padding-inline: 4px;
}

@media (max-width: 1199.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 991.98px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .login-shell {
        padding: 16px;
    }

    .login-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .login-brand h1 {
        font-size: 1.7rem;
    }
}
