/**
 * Membership Manager - Clean & Modern Registration Design
 * Minimal, Light Colors, Professional Look
 */

/* ==========================================
   GLOBAL BODY & BACKGROUND
   ========================================== */
body.login {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Subtle pattern overlay */
body.login::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ==========================================
   MAIN LOGIN CONTAINER
   ========================================== */
#login {
    width: 100%;
    max-width: 440px;
    padding: 0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Messages */
.login .message,
.login .success {
    background: #fff;
    border-left: 4px solid #10b981;
    border-radius: 12px;
    color: #059669;
    padding: 14px 18px;
    margin: 0 0 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    animation: mm-slide-down 0.4s ease-out;
}

.login #login_error {
    background: #fff;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    color: #dc2626;
    padding: 14px 18px;
    margin: 0 0 20px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    animation: mm-shake 0.5s ease;
}

/* ==========================================
   LOGO HEADER
   ========================================== */
#login h1 {
    text-align: center;
    margin-bottom: 24px;
}

#login h1 a {
    background-image: none !important;
    width: auto;
    height: auto;
    text-indent: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    text-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#login h1 a::before {
    content: '';
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================
   MAIN FORM STYLING
   ========================================== */
#loginform,
#registerform {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-top: 0;
    position: relative;
}

/* ==========================================
   LABELS & INPUTS
   ========================================== */
.login label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin: 0;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.login input[type="text"]:hover,
.login input[type="password"]:hover,
.login input[type="email"]:hover {
    border-color: #d1d5db;
}

/* Select (Çoktan seçmeli) ve number - metin alanlarıyla uyumlu */
.login select,
.login input[type="number"] {
    background-color: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin: 0;
    font-family: inherit;
}
.login select {
    -webkit-appearance: none;
    appearance: none;
    font-size: 14px;
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"%3E%3Cpath fill="%236b7280" d="M6 8L1 3h10z"/%3E%3C/svg%3E');
    background-repeat: no-repeat !important;
    background-position: right 14px center;
    background-size: 12px 12px;
    padding-right: 40px;
}
.login select:hover,
.login input[type="number"]:hover {
    border-color: #d1d5db;
}
.login select:focus,
.login input[type="number"]:focus {
    background-color: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}
.login select:focus {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"%3E%3Cpath fill="%236366f1" d="M6 8L1 3h10z"/%3E%3C/svg%3E');
    background-repeat: no-repeat !important;
    background-position: right 14px center;
    background-size: 12px 12px;
}

/* ==========================================
   FILE UPLOAD (Özel alan - Dosya)
   ========================================== */
.mm-file-upload-wrap {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mm-file-upload-wrap .mm-file-input-native {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.mm-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    padding: 14px 20px;
    width: 100%;
    box-sizing: border-box;
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: 14px;
    background: linear-gradient(145deg, #fafaff 0%, #f3f0ff 100%);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mm-file-upload-label:hover,
.mm-file-upload-label:focus-within {
    border-color: #6366f1;
    background: linear-gradient(145deg, #f3f0ff 0%, #e8e4ff 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15), 0 0 0 3px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}
.mm-file-upload-icon {
    font-size: 22px;
    line-height: 1;
    opacity: 0.9;
    flex-shrink: 0;
}
.mm-file-upload-icon::before {
    content: "↑";
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.mm-file-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    letter-spacing: 0.01em;
}
.mm-file-upload-status {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    text-align: center;
    margin-top: 2px;
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    height: auto;
    padding: 14px 28px;
    text-shadow: none;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 8px;
}

.wp-core-ui .button-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.wp-core-ui .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ==========================================
   LINKS
   ========================================== */
.login #backtoblog a,
.login #nav a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.login #backtoblog a:hover,
.login #nav a:hover {
    color: #6366f1;
}

.login #backtoblog,
.login #nav {
    text-align: center;
    margin: 16px 0;
}

/* ==========================================
   REQUIRED MARK STYLING
   ========================================== */
.login label .required {
    color: #ef4444;
    font-weight: 700;
}

/* ==========================================
   VALIDATION MESSAGES
   ========================================== */
.mm-field-error {
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fef2f2;
    border-left: 2px solid #ef4444;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    animation: mm-fade-in 0.2s ease;
}

.mm-field-success {
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #f0fdf4;
    border-left: 2px solid #10b981;
    border-radius: 6px;
    color: #059669;
    font-size: 12px;
    font-weight: 500;
    animation: mm-fade-in 0.2s ease;
}

/* ==========================================
   CHARACTER COUNTER
   ========================================== */
.mm-character-counter {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}

.mm-character-counter.mm-limit-reached {
    color: #ef4444;
    font-weight: 600;
}

/* ==========================================
   PASSWORD STRENGTH
   ========================================== */
.mm-password-strength {
    margin-top: 8px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.mm-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mm-strength-text {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes mm-slide-down {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes mm-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@keyframes mm-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.login form .forgetmenot {
    margin: 16px 0;
}

.login form .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.login form .forgetmenot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #6366f1;
}

.login form p {
    margin-bottom: 14px;
}

.login form .submit {
    margin-top: 20px;
    margin-bottom: 0;
}

/* ==========================================
   PRIVACY & LANGUAGE
   ========================================== */
.privacy-policy-page-link {
    display: block;
    text-align: center;
    margin-top: 16px;
}

.privacy-policy-page-link a {
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-policy-page-link a:hover {
    color: #6366f1;
}

/* Hide language switcher */
.login .language-switcher,
.login #language-switcher,
body.login .language-switcher {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================
   REGISTRATION CONFIRMATION TEXT
   ========================================== */
.login #reg_passmail {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media screen and (max-width: 600px) {
    body.login {
        padding: 20px !important;
        display: block !important;
    }
    
    #login {
        max-width: 100%;
        padding: 0;
        margin: auto;
    }
    
    #loginform,
    #registerform {
        padding: 24px 20px;
        border-radius: 14px;
    }
    
    .mm-registration-section {
        margin: 20px -20px -24px;
        padding: 24px 20px;
        border-radius: 0 0 14px 14px;
    }
    
    .mm-section-header h3 {
        font-size: 18px;
    }
    
    .mm-section-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .mm-fields-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    
    .mm-input {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .login input[type="text"],
    .login input[type="password"],
    .login input[type="email"] {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    #login h1 a {
        font-size: 22px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.mm-form-group:focus-within .mm-field-label {
    color: #111827;
}

.mm-checkbox-label:focus-within {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 10px;
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */
@media (prefers-contrast: high) {
    body.login {
        background: #e5e7eb;
    }
    
    #loginform,
    #registerform {
        border: 2px solid #000;
    }
    
    .mm-input,
    .mm-checkbox-wrapper {
        border-width: 2px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   LOADING STATE
   ========================================== */
.mm-loading-overlay {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.mm-loading-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: mm-spin 0.7s linear infinite;
}

/* ==========================================
   PROFILE PAGE
   ========================================== */
.form-table .mm-membership-info {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 18px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
    color: #fff;
}

.form-table .mm-field-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #6366f1;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.form-table .dashicons-lock {
    color: #ef4444;
    font-size: 16px;
    vertical-align: middle;
}

.form-table .dashicons-yes-alt {
    color: #10b981;
    font-size: 18px;
    vertical-align: middle;
}

.form-table .dashicons-marker {
    color: #f59e0b;
    font-size: 18px;
    vertical-align: middle;
}

/* ==========================================
   TOOLTIP
   ========================================== */
.mm-field-tooltip {
    position: absolute;
    padding: 6px 10px;
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    border-radius: 6px;
    z-index: 10000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: mm-fade-in 0.2s ease;
}

.mm-field-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

/* ==========================================
   ADDITIONAL BUTTON EFFECTS
   ========================================== */
.mm-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    animation: mm-ripple-effect 0.5s ease-out;
    pointer-events: none;
}

@keyframes mm-ripple-effect {
    to {
        transform: scale(15);
        opacity: 0;
    }
}

.shake-animation {
    animation: mm-shake 0.5s ease;
}

.bounce-animation {
    animation: mm-bounce 0.3s ease;
}

@keyframes mm-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    body.login {
        background: #fff;
    }
    
    body.login::before {
        display: none;
    }
    
    #loginform,
    #registerform {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
