* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #07111f, #0b1f3a, #111f46);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    color: #ffffff;
}

/* Background glow */
.bg-blur {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-blur span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    animation: glowMove 12s ease-in-out infinite alternate;
}

.bg-blur span:nth-child(1) {
    width: 260px;
    height: 260px;
    left: 10%;
    top: 22%;
    background: #20dfff;
}

.bg-blur span:nth-child(2) {
    width: 240px;
    height: 240px;
    right: 8%;
    top: 30%;
    background: #2b8fff;
    animation-duration: 14s;
}

.bg-blur span:nth-child(3) {
    width: 230px;
    height: 230px;
    left: 14%;
    bottom: 18%;
    background: #36ffd0;
    animation-duration: 13s;
}

.bg-blur span:nth-child(4) {
    width: 250px;
    height: 250px;
    right: 14%;
    bottom: 12%;
    background: #1c7dff;
    animation-duration: 15s;
}

@keyframes glowMove {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(24px, -18px) scale(1.08);
    }
}

/* Floating logos */
.bg-logo-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-floating-logo {
    position: absolute;
    width: 170px;
    opacity: 0.12;
}

.logo-1 {
    top: 18%;
    left: 5%;
    animation: floatLogo1 19s ease-in-out infinite alternate;
}

.logo-2 {
    bottom: 22%;
    left: 9%;
    animation: floatLogo2 20s ease-in-out infinite alternate;
}

.logo-3 {
    top: 24%;
    right: 6%;
    animation: floatLogo3 21s ease-in-out infinite alternate;
}

.logo-4 {
    bottom: 16%;
    right: 12%;
    animation: floatLogo4 22s ease-in-out infinite alternate;
}

@keyframes floatLogo1 {
    from { transform: translate(0, 0) scale(1); opacity: 0.10; }
    to   { transform: translate(18px, -8px) scale(1.05); opacity: 0.16; }
}

@keyframes floatLogo2 {
    from { transform: translate(0, 0) scale(1); opacity: 0.10; }
    to   { transform: translate(12px, 10px) scale(1.04); opacity: 0.15; }
}

@keyframes floatLogo3 {
    from { transform: translate(0, 0) scale(1); opacity: 0.10; }
    to   { transform: translate(-14px, 9px) scale(1.05); opacity: 0.16; }
}

@keyframes floatLogo4 {
    from { transform: translate(0, 0) scale(1); opacity: 0.10; }
    to   { transform: translate(-10px, -10px) scale(1.04); opacity: 0.15; }
}

/* Main layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px 70px;
    position: relative;
    z-index: 5;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 24px 18px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 0 22px rgba(45, 224, 255, 0.18),
        0 10px 30px rgba(2, 9, 45, 0.35);
        margin: 20px 0;
}

.register-card {
    max-width: 372px;
}

.auth-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-logo {
    width: 126px;
    max-width: 100%;
}

.auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 0 8px rgba(38, 226, 255, 0.15);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

/* Inputs */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    border-radius: 14px;
    background: rgba(210, 225, 255, 0.22);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    overflow: hidden;
    transition: all 0.25s ease;
}

.input-wrap:focus-within {
    border-color: rgba(67, 234, 255, 0.45);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 0 14px rgba(55, 229, 255, 0.15);
}

.input-wrap .left-icon {
    width: 42px;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    flex-shrink: 0;
}

.input-wrap input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    padding-right: 10px;
}

.input-wrap input::placeholder {
    color: rgba(255,255,255,0.72);
}

.toggle-password {
    width: 42px;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    transition: 0.2s ease;
}

.toggle-password:hover {
    color: #5ff5ff;
}

/* Main button */
.auth-main-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 14px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, #c8ffff 0%, #22dcff 45%, #23f0c7 100%);
    box-shadow:
        0 10px 20px rgba(36, 225, 255, 0.20),
        inset 0 1px 0 rgba(255,255,255,0.35);
    transition: all 0.28s ease;
}

.auth-main-btn:hover {
    background: linear-gradient(90deg, #f1ffff 0%, #62ebff 42%, #65ffd8 100%);
    color: #083c63;
    transform: translateY(-2px);
    box-shadow:
        0 14px 26px rgba(36, 225, 255, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

/* Bottom section */
.auth-bottom {
    text-align: center;
    margin-top: 12px;
}

.auth-bottom p {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(205, 223, 255, 0.30), rgba(255,255,255,0.14));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    transition: all 0.28s ease;
}

.auth-switch-btn:hover {
    background: linear-gradient(90deg, #efffff 0%, #4adfff 45%, #55ffd3 100%);
    color: #083d60;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(36, 225, 255, 0.24);
}

/* Alerts */
.error-message,
.success-message {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.error-message {
    background: rgba(255, 73, 133, 0.15);
    border: 1px solid rgba(255, 73, 133, 0.38);
    color: #ffe1ea;
}

.success-message {
    background: rgba(45, 212, 155, 0.14);
    border: 1px solid rgba(45, 212, 155, 0.34);
    color: #dbfff3;
}

/* Mobile */
@media (max-width: 480px) {
    .auth-page {
        align-items: flex-start;
        padding: 18px 12px 90px;
    }
    .auth-card,
    .register-card {
        max-width: 100%;
        border-radius: 20px;
        padding: 20px 14px 18px;
    }

    .auth-logo {
        width: 110px;
    }

    .auth-title {
        font-size: 20px;
    }

    .input-wrap {
        height: 42px;
    }

    .auth-main-btn {
        height: 44px;
        font-size: 15px;
    }

    .auth-switch-btn {
        min-width: 112px;
        height: 38px;
        font-size: 13px;
    }

    .bg-floating-logo {
        width: 110px;
    }
    .toggle-password {
    cursor: pointer;
    pointer-events: auto;
}
}