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

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;

    --text: #111827;
    --muted: #6b7280;

    --border: #e5e7eb;

    --white: #ffffff;
}

body {
    font-family: "Inter", sans-serif;

    color: var(--text);

    background: #f8fbff;

    min-height: 100vh;

    overflow-x: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: -1;
}

.blob {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.35;
}

.blob-one {
    width: 520px;
    height: 520px;

    background: #bfdbfe;

    top: -220px;
    left: -170px;

    animation: blobMove 10s ease-in-out infinite alternate;
}

.blob-two {
    width: 470px;
    height: 470px;

    background: #dbeafe;

    right: -180px;
    bottom: -170px;

    animation: blobMoveTwo 12s ease-in-out infinite alternate;
}

@keyframes blobMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 30px);
    }
}

@keyframes blobMoveTwo {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-40px, -30px);
    }
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 78px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid
        rgba(229, 231, 235, 0.7);
}

.logo {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text);

    text-decoration: none;

    font-size: 21px;

    font-weight: 800;
}

.logo-icon {
    width: 35px;
    height: 35px;

    border-radius: 10px;

    display: flex;

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

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #60a5fa
        );

    box-shadow:
        0 6px 18px
        rgba(37, 99, 235, 0.25);
}

.signup-text {
    color: var(--muted);

    font-size: 14px;
}

.signup-text a {
    color: var(--blue);

    font-weight: 600;

    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}


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

.login-container {
    width: min(1150px, 92%);

    margin: 55px auto 70px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}


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

.login-card {
    width: 100%;

    max-width: 470px;

    margin: auto;

    padding: 40px;

    background:
        rgba(255, 255, 255, 0.93);

    border:
        1px solid
        rgba(229, 231, 235, 0.9);

    border-radius: 24px;

    box-shadow:
        0 25px 60px
        rgba(15, 23, 42, 0.08);

    animation: cardAppear 0.6s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;

        transform:
            translateY(15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================
   HEADER
========================= */

.login-header {
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 30px;

    letter-spacing: -0.8px;

    margin-bottom: 9px;
}

.login-header p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}

.mobile-logo {
    display: none;
}


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

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

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;
}

.form-group input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #60a5fa;

    box-shadow:
        0 0 0 4px
        rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #a1a1aa;
}


/* =========================
   PASSWORD
========================= */

.password-label {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;
}

.password-label label {
    margin-bottom: 0;
}

.password-label a {
    color: var(--blue);

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;
}

.password-label a:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 60px;
}

.show-password {
    position: absolute;

    right: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    border: none;

    background: none;

    color: var(--blue);

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================
   REMEMBER
========================= */

.remember {
    display: flex;

    align-items: center;

    gap: 8px;

    margin:
        5px 0 21px;

    color: var(--muted);

    font-size: 12px;

    cursor: pointer;
}

.remember input {
    accent-color: var(--blue);

    width: 14px;
    height: 14px;
}


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

.login-button {
    width: 100%;

    height: 50px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, 0.25);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

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

    box-shadow:
        0 14px 30px
        rgba(37, 99, 235, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.arrow {
    font-size: 18px;
}


/* =========================
   DIVIDER
========================= */

.divider {
    display: flex;

    align-items: center;

    gap: 14px;

    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}

.divider span {
    color: #9ca3af;

    font-size: 11px;
}


/* =========================
   GOOGLE
========================= */

.google-button {
    width: 100%;

    height: 48px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;

    color: #374151;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.google-button:hover {
    background: #f9fafb;

    border-color: #d1d5db;

    transform: translateY(-1px);
}

.google-icon {
    font-size: 17px;

    font-weight: 800;

    color: #4285f4;
}


/* =========================
   BOTTOM SIGNUP
========================= */

.signup-bottom {
    margin-top: 25px;

    text-align: center;

    color: var(--muted);

    font-size: 12px;
}

.signup-bottom a {
    color: var(--blue);

    font-weight: 600;

    text-decoration: none;
}

.signup-bottom a:hover {
    text-decoration: underline;
}


/* =========================
   PREVIEW
========================= */

.preview-section {
    display: flex;

    justify-content: center;
}

.preview-content {
    position: relative;

    text-align: center;
}

.preview-label {
    display: inline-block;

    margin-bottom: 13px;

    color: var(--blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.preview-content h2 {
    font-size: 39px;

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin-bottom: 15px;
}

.preview-content h2 span {
    color: var(--blue);
}

.preview-content > p {
    max-width: 400px;

    margin: auto;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================
   PHONE
========================= */

.phone {
    position: relative;

    width: 270px;

    height: 535px;

    margin: 35px auto 0;

    padding: 9px;

    border-radius: 38px;

    background: #111827;

    box-shadow:
        0 30px 60px
        rgba(15, 23, 42, 0.25);

    transform: rotate(2deg);

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

@keyframes floatPhone {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(2deg);
    }

    50% {
        transform:
            translateY(-10px)
            rotate(2deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;

    border-radius: 30px;

    background:
        linear-gradient(
            160deg,
            #eff6ff,
            #ffffff 45%,
            #dbeafe
        );

    overflow: hidden;

    padding: 38px 17px 15px;
}

.phone-notch {
    position: absolute;

    top: 16px;

    left: 50%;

    transform:
        translateX(-50%);

    width: 92px;

    height: 24px;

    background: #111827;

    border-radius: 20px;

    z-index: 3;
}

.phone-profile {
    text-align: center;
}

.phone-avatar {
    width: 67px;
    height: 67px;

    margin:
        0 auto 9px;

    border-radius: 50%;

    display: flex;

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

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #60a5fa
        );

    color: white;

    font-size: 24px;

    font-weight: 700;
}

.phone-profile h3 {
    font-size: 15px;

    margin-bottom: 4px;
}

.phone-profile > p {
    color: #6b7280;

    font-size: 10px;
}

.phone-bio {
    margin-top: 6px;

    margin-bottom: 18px;

    color: #6b7280;

    font-size: 10px;
}


/* Links */

.preview-link {
    height: 47px;

    margin-bottom: 9px;

    padding: 0 15px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.9);

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #1f2937;

    font-size: 11px;

    font-weight: 600;

    box-shadow:
        0 5px 15px
        rgba(15, 23, 42, 0.06);
}

.preview-link span:last-child {
    color: #9ca3af;
}


/* Footer */

.phone-footer {
    margin-top: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    color: #9ca3af;

    font-size: 9px;

    font-weight: 600;
}

.mini-logo {
    width: 17px;
    height: 17px;

    border-radius: 5px;

    background: var(--blue);

    display: flex;

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

    color: white;

    font-size: 8px;
}


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

@media (max-width: 900px) {

    .login-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .preview-section {
        display: none;
    }

    .login-card {
        max-width: 550px;
    }
}


@media (max-width: 600px) {

    .navbar {
        height: 68px;

        padding: 0 20px;
    }

    .navbar .logo {
        font-size: 18px;
    }

    .signup-text {
        font-size: 12px;
    }

    .login-container {
        width: 94%;

        margin:
            25px auto 50px;
    }

    .login-card {
        padding:
            28px 22px;

        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 26px;
    }
}


/* =========================
   OTP VERIFICATION
========================= */

.otp-section {
    width: 100%;
    text-align: center;
    animation: otpFadeIn 0.4s ease;
}

@keyframes otpFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* OTP Icon */

.otp-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

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

    border-radius: 18px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 28px;

    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.12);
}


/* Heading */

.otp-section h2 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 26px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


/* Description */

.otp-section > p {
    margin: 0 auto 28px;

    max-width: 380px;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.6;
}

.otp-section > p strong {
    color: #111827;
    font-weight: 600;
}


/* OTP Inputs */

.otp-inputs {
    display: flex;

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

    gap: 10px;

    margin: 0 auto 24px;
}

.otp-input {
    width: 48px;
    height: 56px;

    padding: 0;

    border: 1.5px solid #dbe3ef;
    border-radius: 12px;

    background: #ffffff;

    color: #111827;

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

    text-align: center;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.otp-input:hover {
    border-color: #93c5fd;
}

.otp-input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);

    transform: translateY(-2px);
}


/* Verify Button */

#verifyOtpBtn {
    width: 100%;

    min-height: 52px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    font-family: inherit;

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

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#verifyOtpBtn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(37, 99, 235, 0.28);
}

#verifyOtpBtn:active {
    transform: translateY(0);
}


/* Resend Button */

.resend-btn {
    width: 100%;

    margin-top: 12px;

    padding: 12px;

    border: none;

    background: transparent;

    color: #2563eb;

    font-family: inherit;

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

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.resend-btn:hover {
    color: #1d4ed8;

    background: #eff6ff;

    border-radius: 8px;
}


/* OTP Message */

#otpMessage {
    min-height: 20px;

    margin-top: 14px !important;
    margin-bottom: 0 !important;

    font-size: 13px;

    color: #ef4444;

    line-height: 1.5;
}


/* =========================
   OTP RESPONSIVE
========================= */

@media (max-width: 480px) {

    .otp-icon {
        width: 56px;
        height: 56px;

        font-size: 24px;

        margin-bottom: 16px;
    }

    .otp-section h2 {
        font-size: 23px;
    }

    .otp-section > p {
        font-size: 13px;
        padding: 0 10px;
    }

    .otp-inputs {
        gap: 7px;
    }

    .otp-input {
        width: 42px;
        height: 50px;

        font-size: 20px;

        border-radius: 10px;
    }
}


@media (max-width: 360px) {

    .otp-inputs {
        gap: 5px;
    }

    .otp-input {
        width: 38px;
        height: 46px;

        font-size: 18px;
    }
}