/**
 * ERA Security - Estilos públicos
 *
 * @package ERA\Security
 * @since 1.0.0
 */

/* ==========================================================================
   Login Form Styles
   ========================================================================== */

.era-login-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.era-login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
}

.era-login-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.era-login-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.era-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.era-login-header h1 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.era-login-subtitle {
    margin: 0;
    color: #718096;
    font-size: 16px;
    font-weight: 400;
}

/* Messages */
.era-error-message,
.era-success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.era-error-message {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.era-success-message {
    background-color: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

/* Form Styles */
.era-login-form {
    margin: 0;
}

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

.era-label {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.era-required {
    color: #e53e3e;
    margin-left: 2px;
}

.era-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.4;
    color: #2d3748;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

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

.era-input::placeholder {
    color: #a0aec0;
}

.era-password-wrapper {
    position: relative;
}

.era-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    color: #a0aec0;
    transition: color 0.2s ease;
}

.era-toggle-password:hover {
    color: #4a5568;
}

.era-remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.era-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.4;
}

.era-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.era-checkbox-text {
    user-select: none;
}

/* Submit Button */
.era-submit-group {
    margin-bottom: 24px;
}

.era-submit-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.era-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.era-submit-button:active {
    transform: translateY(0);
}

.era-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.era-button-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

/* Footer */
.era-login-footer {
    text-align: center;
    margin-bottom: 20px;
}

.era-forgot-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.era-forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.era-login-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.era-site-info {
    margin: 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 480px) {
    .era-login-container {
        padding: 10px;
    }
    
    .era-login-form-wrapper {
        padding: 30px 20px;
    }
    
    .era-login-header h1 {
        font-size: 24px;
    }
}

/* ==========================================================================
   User Approval List Styles
   ========================================================================== */

.era-user-approval-list {
    margin: 20px 0;
}

.era-user-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.era-user-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.era-user-item h4 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.era-user-item p {
    margin: 0 0 8px 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

.era-user-item p:last-child {
    margin-bottom: 0;
}

.era-user-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.era-approve-user,
.era-reject-user {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.era-approve-user {
    background: #48bb78;
    color: #ffffff;
}

.era-approve-user:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.era-reject-user {
    background: #f56565;
    color: #ffffff;
}

.era-reject-user:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

/* ==========================================================================
   General Utility Classes
   ========================================================================== */

.era-hidden {
    display: none !important;
}

.era-text-center {
    text-align: center;
}

.era-text-left {
    text-align: left;
}

.era-text-right {
    text-align: right;
}

.era-mt-20 {
    margin-top: 20px;
}

.era-mb-20 {
    margin-bottom: 20px;
}

.era-p-20 {
    padding: 20px;
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.era-fade-in {
    animation: era-fade-in 0.3s ease-out;
}

@keyframes era-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.era-slide-up {
    animation: era-slide-up 0.3s ease-out;
}

@keyframes era-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Dark Mode Support (if needed)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .era-login-form-wrapper {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .era-login-header h1 {
        color: #f7fafc;
    }
    
    .era-login-subtitle {
        color: #a0aec0;
    }
    
    .era-input {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .era-input::placeholder {
        color: #718096;
    }
    
    .era-user-item {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .era-user-item h4 {
        color: #f7fafc;
    }
    
    .era-user-item p {
        color: #a0aec0;
    }
}
