/* Login Page Specific Styles */

.login-main {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

/* Phone Input Styles */
.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.country-code {
    flex-shrink: 0;
}

.country-select {
    width: 120px;
    padding: 15px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 35px;
}

.country-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-input {
    flex: 1;
}

.phone-input input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

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

/* Button Styles */
.form-actions {
    margin-bottom: 1.5rem;
}

.send-otp-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send-otp-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.send-otp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* OTP Section */
.otp-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.otp-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.otp-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.otp-header p {
    color: #666;
    font-size: 0.9rem;
}

.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-digit {
    width: 50px;
    height: 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

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

.otp-digit.filled {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.otp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.resend-otp-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resend-otp-btn:hover {
    background: #667eea;
    color: white;
}

.verify-otp-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-otp-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.verify-otp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.login-footer p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Back to Home Button */
.back-to-home-btn {
    background: transparent;
    color: #333;
    border: 2px solid #e1e5e9;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-home-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* Success/Error States */
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-left: 4px solid #10b981;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-left: 4px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .country-select {
        width: 100%;
    }
    
    .otp-input-group {
        gap: 8px;
    }
    
    .otp-digit {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .otp-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .resend-otp-btn,
    .verify-otp-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .login-main {
        padding: 1rem 0;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .otp-digit {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
