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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.6s ease;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 36px;
    line-height: 1.5;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.4s ease;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #1f2937;
}

.form-input:focus {
    outline: none;
    border-color: #E91E63;
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

.form-input.with-icon {
    padding-left: 50px;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
}

.otp-input:focus {
    outline: none;
    border-color: #E91E63;
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    transform: scale(1.05);
}

.btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #E91E63;
    border: 2px solid #e5e7eb;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #E91E63;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resend-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.resend-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.timer {
    display: inline-block;
    font-weight: 600;
    color: #E91E63;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #E91E63;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.back-link:hover {
    gap: 10px;
    color: #F48FB1;
}

.info-message {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease;
}

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: none;
}

.success-animation.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4ade80;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #4ade80;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4ade80;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0 0 0 50px #4ade80; }
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    body::before,
    body::after {
        display: none;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .logo {
        width: 140px;
    }

    .logo-container {
        margin-bottom: 32px;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

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

    .back-link {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .resend-text {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 8px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .auth-title {
        font-size: 20px;
    }

    .logo {
        width: 120px;
    }
}