/* ========================================
   ONDONE CYBER TUTORIAL
   Full Page Login Design
======================================== */

:root {
    --background: #050b19;
    --surface: #09152a;
    --surface-light: #0d1b33;
    --border: rgba(103, 155, 225, 0.19);

    --primary: #087bff;
    --cyan: #05d5ff;
    --purple: #8158ff;

    --text: #f4f7ff;
    --muted: #a5b4d0;

    --success: #2ce6a2;
    --danger: #ff6b81;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: var(--text);

    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(0, 104, 255, 0.12),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 85% 25%,
            rgba(79, 49, 220, 0.13),
            transparent 35%
        ),
        var(--background);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.page-wrapper {
    width: min(1440px, 100%);
    margin: auto;
    padding: 28px 5% 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   NAVIGATION
======================================== */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--cyan);
    font-size: 30px;

    border: 2px solid rgba(5, 213, 255, 0.75);
    border-radius: 15px 15px 22px 22px;

    background: linear-gradient(
        145deg,
        rgba(0, 137, 255, 0.2),
        rgba(105, 72, 255, 0.08)
    );

    box-shadow: 0 0 24px rgba(0, 140, 255, 0.12);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-text span {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text small {
    font-size: 13px;
    color: var(--muted);
}

.nav-tagline {
    font-size: 13px;
    color: #d1dcf5;
}

.nav-tagline span {
    color: var(--cyan);
    margin: 0 5px;
}

/* ========================================
   MAIN LAYOUT
======================================== */

.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
    align-items: center;
    gap: clamp(30px, 4vw, 65px);
    padding: 55px 0 65px;
}

/* ========================================
   HERO CONTENT
======================================== */

.hero-section {
    min-width: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #b6c8e7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;

    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;

    border-radius: 50%;
    background: var(--success);

    box-shadow: 0 0 12px rgba(44, 230, 162, 0.65);
}

.hero-content h1 {
    font-size: clamp(39px, 4vw, 60px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2.5px;
}

.gradient-text {
    background: linear-gradient(
        95deg,
        var(--cyan),
        #438aff 48%,
        #9c6aff
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 510px;
    margin-top: 23px;

    font-size: 14px;
    line-height: 1.95;
    color: #b9c7df;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px;
}

.primary-button,
.secondary-button {
    min-height: 47px;
    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;

    transition: 0.25s ease;
}

.primary-button {
    background: linear-gradient(100deg, #087bff, #0870ec);
    box-shadow: 0 7px 24px rgba(0, 116, 255, 0.19);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 116, 255, 0.35);
}

.secondary-button {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    color: #dbe6ff;
}

.secondary-button:hover {
    border-color: var(--cyan);
    background: rgba(5, 213, 255, 0.06);
}

/* ========================================
   CYBERSECURITY VISUAL
======================================== */

.cyber-visual {
    height: 225px;
    margin: 25px 0 18px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(0, 169, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 169, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 27px 27px;

    mask-image: radial-gradient(
        ellipse,
        black 10%,
        transparent 72%
    );
}

.visual-content {
    position: relative;
    z-index: 1;

    width: 160px;
    height: 160px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(0, 134, 255, 0.17),
        rgba(0, 80, 180, 0.04) 60%,
        transparent 75%
    );
}

.visual-shield {
    width: 85px;
    height: 95px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    font-size: 75px;
    color: var(--cyan);

    filter: drop-shadow(0 0 14px rgba(0, 180, 255, 0.45));

    animation: floatShield 4s ease-in-out infinite;
}

.shield-lock {
    position: absolute;
    top: 34px;

    font-size: 26px;
    color: #ffffff;
}

.visual-label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;

    color: #b7d9ff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.orbit {
    position: absolute;
    width: 210px;
    height: 210px;

    border: 1px solid rgba(0, 195, 255, 0.15);
    border-radius: 50%;
}

.orbit-one {
    transform: scaleX(1.6) rotate(-22deg);
}

.orbit-two {
    transform: scaleX(1.9) rotate(22deg);
    border-color: rgba(120, 86, 255, 0.2);
}

.floating-card {
    position: absolute;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 16px;

    border: 1px solid rgba(73, 151, 255, 0.25);
    border-radius: 10px;

    background: rgba(7, 20, 42, 0.9);
    backdrop-filter: blur(10px);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);

    animation: floatCard 5s ease-in-out infinite;
}

.floating-card > i {
    color: var(--cyan);
    font-size: 20px;
}

.floating-card div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.floating-card strong {
    font-size: 10px;
}

.floating-card small {
    font-size: 9px;
    color: var(--muted);
}

.card-top {
    top: 24px;
    left: 2%;
}

.card-bottom {
    bottom: 18px;
    right: 2%;
    animation-delay: -2s;
}

/* ========================================
   FEATURE CARDS
======================================== */

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}

.feature-card {
    padding: 15px 11px;

    border: 1px solid transparent;
    border-radius: 12px;

    transition: 0.25s ease;
}

.feature-card:hover {
    background: rgba(12, 32, 65, 0.55);
    border-color: var(--border);
    transform: translateY(-4px);
}

.feature-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 19px;

    margin-bottom: 14px;
}

.feature-icon.purple {
    background: rgba(117, 81, 255, 0.17);
    color: #a58aff;
}

.feature-icon.blue {
    background: rgba(0, 117, 255, 0.18);
    color: #559cff;
}

.feature-icon.cyan {
    background: rgba(0, 213, 255, 0.12);
    color: var(--cyan);
}

.feature-icon.violet {
    background: rgba(133, 84, 255, 0.17);
    color: #a68bff;
}

.feature-card h3 {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.feature-card p {
    color: #9fadc6;
    font-size: 10px;
    line-height: 1.8;
}

/* ========================================
   LOGIN CARD
======================================== */

.login-section {
    min-width: 0;
    scroll-margin-top: 25px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    margin-left: auto;

    padding: 35px 32px 25px;

    border: 1px solid rgba(65, 151, 255, 0.28);
    border-radius: 20px;

    background: linear-gradient(
        150deg,
        rgba(9, 22, 43, 0.98),
        rgba(4, 13, 29, 0.99)
    );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.mobile-brand {
    display: none;
    justify-content: center;
    margin-bottom: 30px;
}

.login-heading {
    margin-bottom: 25px;
}

.welcome-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--cyan);
    background: rgba(0, 143, 255, 0.12);

    font-size: 20px;
    margin-bottom: 17px;
}

.login-heading h2 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.login-heading p {
    margin-top: 9px;

    color: #b2c0d9;
    font-size: 12px;
    line-height: 1.8;
}

/* ========================================
   FORM FIELDS
======================================== */

.form-group {
    margin-bottom: 19px;
}

.form-group > label {
    display: block;
    margin-bottom: 9px;

    color: #edf3ff;
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 1;

    color: #9eb0ce;
    font-size: 15px;

    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 49px;

    padding: 0 44px;

    color: #f5f8ff;
    font-size: 12px;

    background: linear-gradient(
        110deg,
        #0c1a32,
        #0a172d
    );

    border: 1px solid rgba(107, 145, 199, 0.17);
    border-radius: 10px;

    outline: none;
    transition: 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #7f91ae;
}

.input-wrapper input:focus {
    border-color: #168aff;

    box-shadow:
        0 0 0 3px rgba(0, 126, 255, 0.1),
        0 0 20px rgba(0, 126, 255, 0.04);
}

.input-wrapper input.invalid {
    border-color: var(--danger);
}

.password-toggle {
    position: absolute;
    right: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 32px;

    border: none;
    background: transparent;

    color: #a9bad5;
    cursor: pointer;

    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--cyan);
}

.field-error {
    display: block;
    min-height: 0;

    margin-top: 5px;

    color: var(--danger);
    font-size: 10px;
    line-height: 1.5;
}

/* ========================================
   FORM OPTIONS
======================================== */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 2px 0 23px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #c8d3e7;
    font-size: 11px;

    cursor: pointer;
    user-select: none;
}

.remember-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #405270;
    border-radius: 4px;

    background: #0b1930;

    color: white;
    font-size: 10px;

    transition: 0.2s;
}

.custom-checkbox i {
    opacity: 0;
}

.remember-option input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-option input:checked + .custom-checkbox i {
    opacity: 1;
}

.remember-option input:focus-visible + .custom-checkbox {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.form-options > a {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 600;
}

.form-options > a:hover,
.signup-text a:hover {
    text-decoration: underline;
}

/* ========================================
   LOGIN BUTTON
======================================== */

.login-button {
    width: 100%;
    min-height: 51px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: none;
    border-radius: 10px;

    color: white;
    background: linear-gradient(
        100deg,
        #086fff,
        #008cff
    );

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 24px rgba(0, 117, 255, 0.17);

    transition: 0.25s ease;
}

.login-button i {
    font-size: 14px;
    transition: transform 0.2s;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(0, 117, 255, 0.28);
}

.login-button:hover i {
    transform: translateX(4px);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.form-message {
    display: none;

    margin-top: 13px;
    padding: 11px 12px;

    border-radius: 8px;

    font-size: 11px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.form-message.visible {
    display: block;
}

.form-message.error {
    color: #ff9baa;
    border: 1px solid rgba(255, 107, 129, 0.25);
    background: rgba(255, 107, 129, 0.07);
}

.form-message.success {
    color: #69f3bd;
    border: 1px solid rgba(44, 230, 162, 0.25);
    background: rgba(44, 230, 162, 0.07);
}

.form-message.info {
    color: #92d8ff;
    border: 1px solid rgba(0, 145, 255, 0.25);
    background: rgba(0, 145, 255, 0.07);
}

/* ========================================
   DIVIDER & GOOGLE BUTTON
======================================== */

.divider {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 24px 0 19px;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;

    background: rgba(112, 148, 198, 0.17);
}

.divider span {
    color: #8294b2;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;

    white-space: nowrap;
}

.google-button {
    width: 100%;
    min-height: 49px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    border: 1px solid rgba(111, 149, 203, 0.3);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.015);
    color: #edf3ff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.google-button i {
    color: #4285f4;
    font-size: 17px;
}

.google-button:hover {
    border-color: #438aff;
    background: rgba(34, 111, 255, 0.06);
}

/* ========================================
   SIGN UP & SECURITY NOTICE
======================================== */

.signup-text {
    margin-top: 23px;

    text-align: center;
    color: #aab8d0;

    font-size: 11px;
}

.signup-text a {
    margin-left: 4px;

    color: var(--cyan);
    font-weight: 700;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding-top: 19px;
    margin-top: 21px;

    border-top: 1px solid rgba(112, 148, 198, 0.12);

    color: #8e9fbb;
    font-size: 10px;
    line-height: 1.6;
}

.security-notice i {
    color: var(--success);
    font-size: 13px;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    border-top: 1px solid rgba(112, 148, 198, 0.12);

    color: #8798b5;
    font-size: 10px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-links span,
.footer-tagline span {
    color: var(--cyan);
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes floatShield {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (min-width: 1500px) {
    .page-wrapper {
        padding-left: 70px;
        padding-right: 70px;
    }
}

@media (max-width: 1100px) {
    .page-wrapper {
        padding-left: 4%;
        padding-right: 4%;
    }

    .main-content {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .features {
        gap: 4px;
    }

    .feature-card {
        padding: 12px 8px;
    }

    .login-card {
        padding: 30px 24px 22px;
    }
}

@media (max-width: 850px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 45px 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cyber-visual {
        max-width: 550px;
        margin: 30px auto;
    }

    .features {
        max-width: 650px;
        margin: 20px auto 0;
    }

    .login-card {
        max-width: 470px;
        margin: auto;
    }

    .login-section {
        width: 100%;
    }

    .nav-tagline {
        font-size: 11px;
    }

    .footer {
        padding: 18px 0;
    }
}

@media (max-width: 560px) {
    .page-wrapper {
        padding: 22px 20px 0;
    }

    .navbar {
        justify-content: center;
    }

    .navbar > .brand {
        gap: 10px;
    }

    .navbar .brand-logo {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .navbar .brand-text span {
        font-size: 22px;
    }

    .navbar .brand-text small {
        font-size: 11px;
    }

    .nav-tagline {
        display: none;
    }

    .main-content {
        padding: 40px 0;
        gap: 25px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.2px;
        margin-bottom: 19px;
    }

    .hero-content h1 {
        font-size: clamp(35px, 9vw, 45px);
        letter-spacing: -1.8px;
    }

    .hero-description {
        font-size: 12px;
        line-height: 1.9;
    }

    .hero-buttons {
        gap: 10px;
    }

    .primary-button,
    .secondary-button {
        min-height: 44px;
        padding: 0 13px;
        font-size: 11px;
    }

    .cyber-visual {
        height: 205px;
        margin: 24px 0;
    }

    .floating-card {
        padding: 10px;
        gap: 8px;
    }

    .floating-card strong {
        font-size: 9px;
    }

    .floating-card small {
        font-size: 8px;
    }

    .floating-card > i {
        font-size: 16px;
    }

    .card-top {
        left: 0;
    }

    .card-bottom {
        right: 0;
    }

    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .feature-card {
        padding: 13px;
        border: 1px solid rgba(103, 155, 225, 0.1);
        background: rgba(12, 32, 65, 0.22);
    }

    .feature-card h3 {
        font-size: 11px;
    }

    .feature-card p {
        font-size: 10px;
    }

    .login-card {
        padding: 25px 19px 22px;
        border-radius: 15px;
    }

    .mobile-brand {
        display: flex;
    }

    .mobile-brand .brand-logo {
        width: 43px;
        height: 43px;
        font-size: 24px;
    }

    .mobile-brand .brand-text span {
        font-size: 21px;
    }

    .login-heading h2 {
        font-size: 24px;
    }

    .login-heading p {
        font-size: 11px;
    }

    .form-options > a,
    .remember-option {
        font-size: 10px;
    }

    .footer {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding: 20px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
