/* Raj Custom Membership — Auth Forms Styling
   Login/Register forms ke liye responsive design:
   - Mobile par: rounded card, icon-wale inputs, neeche blue wave
   - Desktop/Tablet par: split-screen (left form, right colored brand panel)

   Rangon ko badalne ke liye neeche --rcm-primary, --rcm-bg-start,
   --rcm-bg-end variables edit karein. */

.rcm-auth-wrap {
    --rcm-primary: #2563eb;
    --rcm-bg-start: #1e3a8a;
    --rcm-bg-end: #2563eb;

    max-width: 460px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.rcm-auth-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.12);
    overflow: hidden;
    position: relative;
}

/* ---------- Form side (dono mobile aur desktop par dikhta hai) ---------- */

.rcm-auth-form-panel {
    padding: 40px 32px 48px;
    position: relative;
    z-index: 2;
}

.rcm-auth-logo {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.14);
    padding: 8px;
}

.rcm-auth-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rcm-auth-form-panel h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    letter-spacing: -0.3px;
}

.rcm-auth-form-panel > p.rcm-auth-subtitle {
    margin: 6px 0 28px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.rcm-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 0 0 18px;
}

.rcm-auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 0 0 18px;
}

.rcm-field {
    margin-bottom: 18px;
}

.rcm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.rcm-login-form .rcm-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rcm-field input,
.rcm-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14.5px;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rcm-field input::placeholder {
    color: #9ca3af;
}

/* Icon wale input fields (username/password) */
.rcm-field-icon {
    position: relative;
}

.rcm-field-icon .rcm-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    pointer-events: none;
}

.rcm-field-icon input {
    padding-left: 42px;
}

.rcm-field-icon .rcm-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    display: flex;
}

.rcm-field-icon .rcm-toggle-password:hover {
    color: #6b7280;
}

.rcm-field-icon.has-toggle input {
    padding-right: 40px;
}

.rcm-field input:focus,
.rcm-field select:focus {
    outline: none;
    border-color: var(--rcm-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rcm-submit-btn {
    width: 100%;
    padding: 14px 14px;
    background: linear-gradient(135deg, var(--rcm-bg-start), var(--rcm-bg-end));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    transition: opacity 0.15s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rcm-submit-btn:hover {
    opacity: 0.92;
}

.rcm-submit-btn:active {
    transform: scale(0.98);
}

.rcm-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}

.rcm-auth-footer a {
    color: var(--rcm-primary);
    font-weight: 600;
    text-decoration: none;
}

.rcm-auth-footer a:hover {
    text-decoration: underline;
}

/* ---------- Remember me + Forgot password row ---------- */

.rcm-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -4px 0 18px;
    font-size: 13px;
}

.rcm-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    cursor: pointer;
}

.rcm-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--rcm-primary);
    cursor: pointer;
}

.rcm-auth-options a {
    color: var(--rcm-primary);
    text-decoration: none;
    font-weight: 600;
}

.rcm-auth-options a:hover {
    text-decoration: underline;
}

/* ---------- "OR" divider + Google button ---------- */

.rcm-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    margin: 20px 0;
}

.rcm-auth-divider::before,
.rcm-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.rcm-auth-divider span {
    padding: 0 12px;
}

.rcm-google-btn-wrap {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.rcm-google-status {
    text-align: center;
    font-size: 12.5px;
    color: #6b7280;
    margin: 10px 0 0;
}

.rcm-already-logged-in {
    max-width: 420px;
    margin: 40px auto;
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 20px;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Mobile: neeche blue wave decoration + illustration ---------- */

.rcm-auth-wave {
    position: relative;
    height: 118px;
    background: linear-gradient(135deg, var(--rcm-bg-start), var(--rcm-bg-end));
    border-radius: 100% 100% 0 0 / 60px 60px 0 0;
    margin-top: 4px;
    overflow: visible;
}

.rcm-auth-illustration {
    position: absolute;
    left: 50%;
    top: -32px;
    transform: translateX(-50%);
    width: 56%;
    max-width: 210px;
    height: auto;
}

/* ---------- Desktop/Tablet: brand panel (dahi taraf ka colored panel) ---------- */

.rcm-auth-brand-panel {
    display: none; /* Mobile par chhupa rahega */
}

@media (min-width: 760px) {
    .rcm-auth-wrap {
        max-width: 860px;
    }

    .rcm-auth-card {
        display: flex;
        min-height: 480px;
    }

    .rcm-auth-form-panel {
        flex: 1 1 55%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 50px 56px;
    }

    .rcm-auth-form-panel h2,
    .rcm-auth-form-panel > p.rcm-auth-subtitle {
        text-align: left;
    }

    .rcm-auth-logo {
        margin: 0 0 18px;
    }

    /* Desktop par wave hata do, brand panel dikhega */
    .rcm-auth-wave {
        display: none;
    }

    .rcm-auth-brand-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1 1 45%;
        padding: 50px 44px;
        background: linear-gradient(160deg, var(--rcm-bg-start), var(--rcm-bg-end));
        color: #fff;
        position: relative;
        overflow: hidden;
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .rcm-auth-brand-panel h3 {
        margin: 0 0 12px;
        font-size: 30px;
        font-weight: 800;
        line-height: 1.15;
    }

    .rcm-auth-brand-panel p {
        margin: 0;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.6;
        max-width: 260px;
    }
}

/* Chhoti mobile screens par thoda kam padding */
@media (max-width: 480px) {
    .rcm-auth-wrap {
        margin: 16px 14px;
    }
    .rcm-auth-form-panel {
        padding: 30px 22px 44px;
    }
}
