/**
 * MZTS Auth Frontend Styles
 * 
 * @package MZTS_Auth
 */

/* Form Wrapper */
.mzts-auth-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Form Container */
.mzts-auth-form-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Title */
.mzts-auth-form-title {
    margin: 0 0 30px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Form */
.mzts-auth-form {
    width: 100%;
}

/* Form Group */
.mzts-auth-form-group {
    margin-bottom: 20px;
}

/* Label */
.mzts-auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

.mzts-auth-required {
    color: #d32f2f;
    margin-right: 2px;
}

/* Input Fields */
.mzts-auth-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    direction: inherit;
}

.mzts-auth-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.mzts-auth-input:invalid {
    border-color: #d32f2f;
}

/* File Input */
.mzts-auth-file-input {
    padding: 10px;
    cursor: pointer;
}

/* Help Text */
.mzts-auth-help-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

/* Checkbox */
.mzts-auth-checkbox-group {
    margin: 15px 0;
}

.mzts-auth-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #444;
}

.mzts-auth-checkbox {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    cursor: pointer;
}

/* Button */
.mzts-auth-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.mzts-auth-button:hover {
    transform: translateY(-1px);
}

.mzts-auth-button:active {
    transform: translateY(0);
}

.mzts-auth-button-primary {
    background: #2196f3;
    color: #ffffff;
}

.mzts-auth-button-primary:hover {
    background: #1976d2;
}

.mzts-auth-button-primary:disabled {
    background: #90caf9;
    cursor: not-allowed;
    transform: none;
}

/* Form Footer */
.mzts-auth-form-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.mzts-auth-form-footer p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.mzts-auth-link {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.mzts-auth-link:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* Notices */
.mzts-auth-notices-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 90%;
    max-width: 500px;
    pointer-events: none;
}

.mzts-auth-notice {
    margin-bottom: 10px;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s;
    pointer-events: auto;
    text-align: center;
}

.mzts-auth-notice-success {
    background: #4caf50;
    color: #ffffff;
}

.mzts-auth-notice-error {
    background: #f44336;
    color: #ffffff;
}

.mzts-auth-notice-warning {
    background: #ff9800;
    color: #ffffff;
}

.mzts-auth-notice-info {
    background: #2196f3;
    color: #ffffff;
}

/* Message (for logged in users) */
.mzts-auth-message {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 30px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    color: #1565c0;
    font-size: 16px;
    text-align: center;
}

/* RTL Support */
[dir="rtl"] .mzts-auth-form-wrapper {
    direction: rtl;
}

[dir="rtl"] .mzts-auth-input {
    text-align: right;
}

[dir="rtl"] .mzts-auth-checkbox {
    margin-left: 0;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .mzts-auth-form-wrapper {
        padding: 10px;
    }
    
    .mzts-auth-form-container {
        padding: 30px 20px;
    }
    
    .mzts-auth-form-title {
        font-size: 24px;
    }
    
    .mzts-auth-notices-wrapper {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .mzts-auth-form-container {
        padding: 20px 15px;
    }
    
    .mzts-auth-form-title {
        font-size: 22px;
    }
    
    .mzts-auth-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .mzts-auth-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Loading State */
.mzts-auth-button.mzts-auth-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.mzts-auth-button.mzts-auth-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: mzts-auth-spin 0.6s linear infinite;
}

@keyframes mzts-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

