/* PREMIUM LOGIN STYLE */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #5b57f4;
    --primary-hover: #4a45e0;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}

body {
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 440px;
}

/* Animations */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Animation applied here */
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-black {
    background: #111;
    color: #fff;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 16px;
}

.logo-text {
    background: #fff;
    color: #333;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 16px;
}

/* Headers */
h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.sub-text {
    font-size: 15px;
    color: #777;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* Inputs */
.input-box {
    display: flex;
    align-items: center;
    background: #f8f9fc;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.input-box:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 87, 244, 0.1);
}

.input-box .icon {
    font-size: 20px;
    margin-right: 12px;
    color: #aaa;
}

.input-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.input-box input::placeholder {
    color: #bbb;
}

/* Button */
.btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(91, 87, 244, 0.2);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(91, 87, 244, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* OTP Box Specifics */
.otp-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.otp-box input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
    color: var(--primary);
}

.otp-box input:focus {
    border-color: var(--primary);
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(91, 87, 244, 0.15);
}

.resend {
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.resend a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.resend a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
    .card {
        padding: 40px 25px;
        border-radius: 25px;
    }

    body {
        background: #fff;
        /* Simplify background for mobile performance */
        align-items: flex-start;
        padding: 0;
    }

    .container {
        max-width: 100%;
        height: 100vh;
    }

    .card {
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .otp-box input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
}