/* AdminEase Password Protection - Modern Styles */
.adminease-pps-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adminease-pps {
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

/* Classic Theme Styles */
.adminease-pps.classic-theme .login-container {
    position: relative;
    width: 100%;
}

.adminease-pps.classic-theme .login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
    text-align: center;
    position: relative;
}

.adminease-pps.classic-theme .login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #7d50f9) 0%, #845af9 100%);
}

.adminease-pps.classic-theme .login-header {
    margin-bottom: 30px;
}

.adminease-pps.classic-theme .logo {
    width: auto;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.adminease-pps.classic-theme .site-title {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color, #222222);
    letter-spacing: -0.5px;
}

.adminease-pps.classic-theme .welcome-message {
    margin: 0 0 30px;
    color: #666666;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Styles */
.adminease-pps.classic-theme .login-form {
    text-align: left;
}

.adminease-pps.classic-theme .input-group {
    margin-bottom: 20px;
    position: relative;
}

.adminease-pps.classic-theme .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.adminease-pps.classic-theme .input-icon {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    color: #999999;
    z-index: 2;
    pointer-events: none;
}

.adminease-pps.classic-theme .form-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: var(--text-color, #222222);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.adminease-pps.classic-theme .form-input:focus {
    border-color: var(--primary-color, #7d50f9);
    box-shadow: 0 0 0 3px rgba(125, 80, 249, 0.1);
}

.adminease-pps.classic-theme .form-input:focus ~ .form-label,
.adminease-pps.classic-theme .form-input:not(:placeholder-shown) ~ .form-label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    background: #ffffff;
    padding: 0 8px;
    border-radius: 12px;
    color: var(--primary-color, #7d50f9);
    font-weight: 600;
}

.adminease-pps.classic-theme .form-label {
    position: absolute;
    left: 50px;
    top: 15px;
    color: #999999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

/* Checkbox Styles */
.adminease-pps.classic-theme .checkbox-group {
    margin: 10px 0;
}

.adminease-pps.classic-theme .checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.adminease-pps.classic-theme .checkbox-input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.adminease-pps.classic-theme .checkbox-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    background: #ffffff;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

[dir="rtl"] .adminease-pps.classic-theme .checkbox-custom {
    margin-right: 0;
    margin-left: 12px;
}

.adminease-pps.classic-theme .checkbox-input:checked ~ .checkbox-custom {
    background: var(--primary-color, #7d50f9);
    border-color: var(--primary-color, #7d50f9);
}

.adminease-pps.classic-theme .check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    color: white;
    transition: transform 0.2s ease;
}

.adminease-pps.classic-theme .checkbox-input:checked ~ .checkbox-custom .check-icon {
    transform: translate(-50%, -50%) scale(1);
}

.adminease-pps.classic-theme .checkbox-text {
    color: #666666;
    font-size: 15px;
    line-height: 1.4;
}

/* Button Styles */
.adminease-pps.classic-theme .login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color, #7d50f9) 0%, var(--secondary-color, #845af9) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    margin: 10px 0 0 0;
}

.adminease-pps.classic-theme .login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.adminease-pps.classic-theme .login-button:active {
    transform: translateY(0);
}

.adminease-pps.classic-theme .login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.adminease-pps.classic-theme .button-text {
    transition: opacity 0.3s ease;
}

.adminease-pps.classic-theme .login-button.loading .button-text {
    opacity: 0;
}

.adminease-pps.classic-theme .loading-spinner {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.adminease-pps.classic-theme .login-button.loading .loading-spinner {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Message Container */
.adminease-pps.classic-theme .message-container {
    margin-top: 10px;
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.adminease-pps.classic-theme .message-container.show {
    opacity: 1;
    transform: translateY(0);
}

.adminease-pps.classic-theme .message-container.error {
    background: #ffeeee;
    color: #cc3333;
    border: 1px solid #ffcccc;
    padding: 12px;
}

.adminease-pps.classic-theme .message-container.success {
    background: #eeffee;
    color: #339933;
    border: 1px solid #ccffcc;
    padding: 12px;
}

.adminease-pps.classic-theme .message-container.info {
    background: #eeeeff;
    color: #333399;
    border: 1px solid #ccccff;
    padding: 12px;
}

/* Password Hint */
.adminease-pps.classic-theme .password-hint {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color, #7d50f9);
    font-size: 14px;
    color: #666666;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .adminease-pps {
        margin: 10px;
    }

    .adminease-pps.classic-theme .login-card {
        padding: 30px 20px;
    }

    .adminease-pps.classic-theme .site-title {
        font-size: 24px;
    }

    .adminease-pps.classic-theme .welcome-message {
        font-size: 14px;
    }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.adminease-pps .password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666666;
    z-index: 3;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.adminease-pps .password-toggle:hover {
    color: var(--primary-color, #7d50f9);
    background: rgba(125, 80, 249, 0.05);
}

.adminease-pps .password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.adminease-pps .password-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: opacity 0.2s ease;
}