/* WP Document Workflow Login Page Styles */

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

.wdw-login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.wdw-login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
    text-align: center;
}

.wdw-login-header {
    margin-bottom: 30px;
}

.wdw-login-header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.wdw-login-header p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.wdw-login-form {
    text-align: left;
}

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

.wdw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.wdw-form-group input[type="text"],
.wdw-form-group input[type="password"],
.wdw-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

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

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

.wdw-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
}

.wdw-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

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

.wdw-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wdw-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wdw-login-btn:active {
    transform: translateY(0);
}

.wdw-login-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wdw-login-errors ul {
    margin: 0;
    padding-left: 20px;
}

.wdw-login-errors li {
    color: #721c24;
    font-size: 14px;
    margin: 5px 0;
}

.wdw-login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.wdw-login-footer p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .wdw-login-container {
        padding: 10px;
    }
    
    .wdw-login-box {
        padding: 30px 20px;
    }
    
    .wdw-login-header h1 {
        font-size: 24px;
    }
    
    .wdw-form-group input[type="text"],
    .wdw-form-group input[type="password"],
    .wdw-form-group input[type="email"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Loading State */
.wdw-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wdw-login-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success State */
.wdw-login-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #155724;
    text-align: center;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wdw-login-box {
    animation: fadeIn 0.5s ease-out;
}

/* Focus visible for accessibility */
.wdw-form-group input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.wdw-login-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wdw-login-box {
        border: 2px solid #000;
    }
    
    .wdw-form-group input {
        border-width: 2px;
    }
    
    .wdw-login-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wdw-login-box {
        animation: none;
    }
    
    .wdw-login-btn {
        transition: none;
    }
    
    .wdw-form-group input {
        transition: none;
    }
}
