/**
 * Eventswow Dashboard - Login Page Styles
 * Version: 1.0.0
 */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.ew-login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    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;
}

/* Login Container */
.ew-login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

.ew-login-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
}

/* Logo */
.ew-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.ew-logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.ew-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

/* Welcome Message */
.ew-login-welcome {
    text-align: center;
    margin-bottom: 30px;
}

.ew-login-welcome h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.ew-login-welcome p {
    font-size: 14px;
    color: #718096;
}

/* Alert Messages */
.ew-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ew-alert .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ew-alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #fc8181;
}

.ew-alert-success {
    background: #e6fffa;
    color: #047857;
    border: 1px solid #81e6d9;
}

/* Form Styles */
.ew-login-form {
    margin-bottom: 24px;
}

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

.ew-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.ew-input-wrapper {
    position: relative;
}

.ew-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ew-form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
    outline: none;
}

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

.ew-form-input::placeholder {
    color: #a0aec0;
}

/* Form Options */
.ew-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.ew-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4a5568;
}

.ew-checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Links */
.ew-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ew-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Buttons */
.ew-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
}

.ew-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.ew-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.ew-btn-block {
    width: 100%;
}

.ew-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Footer */
.ew-login-footer {
    text-align: center;
    font-size: 14px;
    color: #718096;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Background Gradient Circles */
.ew-login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none; /* Allow clicks to pass through */
}

.ew-gradient-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    pointer-events: none; /* Allow clicks to pass through */
}

.ew-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.ew-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.ew-circle-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .ew-login-box {
        padding: 30px 20px;
    }
    
    .ew-logo-text {
        font-size: 24px;
    }
    
    .ew-login-welcome h2 {
        font-size: 20px;
    }
    
    .ew-form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
