:root {
    --primary: #234e52;
    --secondary: #7f1102;
    --third: #d4a373;
    --fourth: #a3be8c;
    --light: #f8f5f0;
    --dark: #0d2c3a;
}

/* Ultimate Member Form Styling */
/* Unified Form Card */
.iw-um-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #fff; /* single card background */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 30px 25px;
    gap: 1rem; /* small gap between fields */
}

/* Remove individual field backgrounds/shadows */
.um-field {
    background: transparent;
    box-shadow: none;
    border: none;
    margin: 0; /* no extra spacing */
    padding: 0;
    width: 100%;
    position: relative;
}

.um-field-label {
    display: block;
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
    text-align: left; /* labels on left side */
    padding-left: 5px; /* optional spacing */
    padding-right: 0; /* remove right padding */
    margin-bottom: 8px;
    position: relative;
}

.um-field-label::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 8px; /* move line to left */
    width: 40px;
    height: 2px;
    background: var(--third);
    border-radius: 1px;
}

.um-field-area input[type="text"],
.um-field-area input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    direction: ltr; 
    text-align: left; 
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.um-field-area input:focus {
    border-color: var(--third);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.3);
    background: white;
}

/* Error styling */
.um-field-error {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: right;
    font-weight: bold;
    background: rgba(127, 17, 2, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--secondary);
}

/* Checkbox styling */
.um-field-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    padding: 10px 0;
    border-top: 1px dashed #eaeaea;
}

.um-field-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark);
}

.um-field-checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.um-field-checkbox-option input[type="checkbox"]:checked + .um-field-checkbox-state {
    background: var(--third);
    border-color: var(--third);
}

.um-field-checkbox-option input[type="checkbox"]:checked + .um-field-checkbox-state::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: translate(-50%, -60%) rotate(-45deg);
}

/* Fancy button with brand colors */
.um-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 20px auto 0;
}

.um-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--third) 0%, var(--secondary) 100%);
}

.um-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.5s;
}

.um-button:hover::before {
    left: 100%;
}

/* Hide specific element */
.um_request_name {
    display: none !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .um.um-login {
        margin: 20px;
        padding: 20px;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Philosopher', sans-serif;
    background: var(--primary);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(163, 190, 140, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 163, 115, 0.1) 0%, transparent 20%),
        linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    z-index: -2;
}

.iw-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4a373' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.iw-login-container {
    display: flex;
    width: 95%;
    max-width: 1400px;
    min-height: 85vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 163, 115, 0.2);
    position: relative;
    margin: 30px 0;
}

.iw-decorative-corner {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 1;
}

.iw-corner-tl {
    top: 0;
    left: 0;
    border-top: 4px solid var(--third);
    border-left: 4px solid var(--third);
}

.iw-corner-tr {
    top: 0;
    right: 0;
    border-top: 4px solid var(--fourth);
    border-right: 4px solid var(--fourth);
}

.iw-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid var(--fourth);
    border-left: 4px solid var(--fourth);
}

.iw-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid var(--third);
    border-right: 4px solid var(--third);
}

.iw-decorative-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(212, 163, 115, 0.1);
    z-index: 0;
}

.iw-circle-1 {
    top: -150px;
    left: -150px;
}

.iw-circle-2 {
    bottom: -150px;
    right: -150px;
}

.iw-left-panel {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(35, 78, 82, 0.9) 0%, rgba(13, 44, 58, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a373' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.iw-right-panel {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--light);
    position: relative;
}

.iw-quran-verse {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
}

.iw-arabic-verse {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    line-height: 1.8;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: justify;
    direction: rtl;
    margin-bottom: 1.5rem;
    padding: 0 10px;
}

.iw-verse-container {
    position: relative;
    padding-top: 1.5rem;
}

.iw-verse-end {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--third);
    line-height: 1;
}

.iw-english-verse {
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--third);
    text-align: center;
    padding: 0 15px;
}

.iw-verse-reference {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--fourth);
    text-align: center;
    margin-top: 10px;
}

.iw-islamic-art {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle, var(--third) 2px, transparent 2px),
        radial-gradient(circle, var(--fourth) 1px, transparent 1px);
    background-size: 100px 100px, 50px 50px;
    background-position: 0 0, 50px 50px;
    z-index: 1;
}

.iw-welcome-section {
    text-align: center;
    margin: 2rem 0 3rem;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.iw-arabic-greeting {
    font-family: 'Amiri', serif;
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.iw-arabic-greeting::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--third);
    border-radius: 2px;
}

.iw-platform-name {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1.4;
    margin-top: 1.5rem;
}

.iw-form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--third);
    position: relative;
    z-index: 2;
}

.iw-um-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.iw-input-group {
    position: relative;
}

.iw-input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    direction: rtl;
}

.iw-input-group input:focus {
    border-color: var(--third);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.3);
    background: white;
}

.iw-input-group label {
    position: absolute;
    top: -10px;
    right: 15px;
    background: white;
    padding: 0 8px;
    font-size: 0.9rem;
    color: var(--primary);
    pointer-events: none;
    transition: all 0.3s ease;
    direction: rtl;
}

.iw-submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.iw-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.iw-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.iw-submit-btn:hover::before {
    left: 100%;
}

.iw-login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 15px;
    direction: rtl;
}

.iw-register-link {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.iw-register-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.iw-register-link:hover {
    color: var(--secondary);
}

.iw-register-link:hover::after {
    width: 100%;
}

.iw-forgot-link {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.iw-forgot-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.iw-forgot-link:hover::after {
    width: 100%;
}

.iw-floating-art {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.iw-art-1 {
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--third) 0%, transparent 70%);
    border-radius: 50%;
}

.iw-art-2 {
    bottom: 30%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: 
        repeating-conic-gradient(var(--fourth) 0% 25%, transparent 0% 50%)
        50% / 20px 20px;
    border-radius: 10px;
    transform: rotate(45deg);
}

.iw-art-3 {
    top: 40%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: 
        radial-gradient(circle at center, var(--secondary) 0%, transparent 70%),
        conic-gradient(var(--third) 0% 25%, var(--fourth) 25% 50%, var(--third) 50% 75%, var(--fourth) 75% 100%);
    border-radius: 50%;
    transform: rotate(30deg);
}

.iw-form-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.iw-form-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--third);
    border-radius: 2px;
}

.iw-floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--third);
    opacity: 0.5;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(0, -40px); }
    75% { transform: translate(-20px, -20px); }
}

.iw-floating-element:nth-child(1) {
    top: 15%;
    left: 10%;
    width: 15px;
    height: 15px;
    animation-delay: 0s;
}

.iw-floating-element:nth-child(2) {
    top: 25%;
    right: 15%;
    width: 12px;
    height: 12px;
    animation-delay: -2s;
    background: var(--fourth);
}

.iw-floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 18px;
    height: 18px;
    animation-delay: -4s;
    background: var(--secondary);
}

.iw-floating-element:nth-child(4) {
    bottom: 30%;
    right: 10%;
    width: 10px;
    height: 10px;
    animation-delay: -6s;
}

@media (max-width: 992px) {
    .iw-login-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .iw-left-panel {
        padding: 2.5rem;
    }
    
    .iw-right-panel {
        padding: 2.5rem;
    }
    
    .iw-arabic-verse {
        font-size: 2rem;
    }
    
    .iw-arabic-greeting {
        font-size: 3.2rem;
    }
    
    .iw-platform-name {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .iw-login-container {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .iw-quran-verse {
        padding: 1.8rem;
    }
    
    .iw-arabic-verse {
        font-size: 1.8rem;
    }
    
    .iw-form-container {
        padding: 2rem;
    }
    
    .iw-login-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .iw-arabic-greeting {
        font-size: 2.8rem;
    }
    
    .iw-platform-name {
        font-size: 1.7rem;
    }
    
    body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .iw-left-panel,
    .iw-right-panel {
        padding: 1.8rem;
    }
    
    .iw-arabic-verse {
        font-size: 1.6rem;
    }
    
    .iw-form-container {
        padding: 1.5rem;
    }
    
    .iw-arabic-greeting {
        font-size: 2.3rem;
    }
    
    .iw-platform-name {
        font-size: 1.4rem;
    }
    
    .iw-form-title {
        font-size: 1.6rem;
    }
}