/* Styles extracted from login.html */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-header h2 i {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

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

.login-header p {
    margin: 12px 0 0;
    opacity: 0.9;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.login-body {
    padding: 40px 35px;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

.step-subtitle {
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
}

.otp-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
    direction: ltr !important;
}

.otp-input {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 60px;
    text-align: center !important;
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.otp-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    outline: none;
}

.otp-input.filled {
    border-color: #667eea;
    background: white;
}

.phone-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    margin: 0 4px;
}

.error-alert {
    background: #fee;
    border: 2px solid #fcc;
    color: #c33;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.step-container {
    animation: fadeIn 0.4s ease;
}

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

.otp-input-group {
    display: none;
}

.otp-input-group.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 16px;
    }

    .login-body {
        padding: 30px 20px;
    }

    .login-header {
        padding: 40px 20px 30px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-input {
        width: 45px !important;
        min-width: 45px !important;
        max-width: 45px !important;
        height: 55px;
        font-size: 20px;
        direction: ltr !important;
        unicode-bidi: bidi-override !important;
    }
}

