/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Glassmorphism Container */
.login-container {
    position: relative;
    width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 40px;
    color: #fff;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: rotate(45deg);
    pointer-events: none;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: background 0.3s;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* Captcha Section */
.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 8px;
}

.captcha-image {
    font-family: 'Courier New', monospace;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 5px;
    color: #ffd700;
    user-select: none;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMSIvPjwvc3ZnPg==');
    padding: 5px 15px;
    border-radius: 4px;
}

.btn-refresh {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.btn-refresh:hover {
    transform: rotate(180deg);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 46, 113, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-text {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Validation Messages */
.error-message {
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* OTP View (Hidden by default) */
.hidden {
    display: none;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-inputs input {
    width: 40px;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 25px;
    }
}
