/* ========================================================
   Digital Rajahmundry - Role-Specific Modern Login Styles
   Investor, NGO Partner, Advertiser, Government Partner, Builder/Agent
   ======================================================== */

:root {
    --login-navy-bg: #071224;
    --login-navy-card: #0c1c38;
    --login-accent-teal: #00e699;
    --login-accent-blue: #2563eb;
    --login-text-dark: #0f172a;
    --login-text-muted: #64748b;
    --login-border: #e2e8f0;
}

.role-login-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - 76px);
    padding: 2rem 1rem 4rem 1rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.role-login-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Master Card */
.role-login-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f6;
    overflow: hidden;
}

/* ========================================================
   LEFT COLUMN: NAVY SHOWCASE PANEL
   ======================================================== */
.role-showcase-panel {
    background: linear-gradient(180deg, #071224 0%, #0a1b3a 45%, #050d1a 100%);
    color: #ffffff;
    padding: 2.75rem 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Top Branding */
.showcase-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    text-decoration: none;
}

.showcase-brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00C897 0%, #0072FF 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.45rem;
    box-shadow: 0 4px 14px rgba(0, 200, 151, 0.35);
    flex-shrink: 0;
}

.showcase-brand-text h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.1;
}

.showcase-brand-text h2 span {
    color: #38bdf8;
}

.showcase-brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Top Badge if any (Government) */
.showcase-top-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 230, 153, 0.12);
    border: 1px solid rgba(0, 230, 153, 0.3);
    color: var(--login-accent-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Headline */
.showcase-heading {
    font-size: 2.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.showcase-highlight {
    color: var(--login-accent-teal);
    display: inline-block;
}

.showcase-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

/* Themed Divider */
.showcase-divider-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--login-accent-teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center;
}

.showcase-divider-tagline::before,
.showcase-divider-tagline::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* 4 Feature Items */
.showcase-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.showcase-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.showcase-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.showcase-feature-item:hover .showcase-feature-icon {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    transform: scale(1.05);
}

.showcase-feature-content h5 {
    font-size: 0.94rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 2px 0;
}

.showcase-feature-content p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

/* Bridge Photo Box */
.showcase-bridge-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.showcase-bridge-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    filter: brightness(0.92) contrast(1.05);
}

/* Floating Security Badge Card */
.showcase-security-card {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(7, 18, 36, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.showcase-security-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 200, 151, 0.2);
    border: 1px solid rgba(0, 200, 151, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-accent-teal);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.showcase-security-text h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.showcase-security-text p {
    font-size: 0.72rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.3;
}

/* ========================================================
   RIGHT COLUMN: LOGIN FORM CARD
   ======================================================== */
.role-form-panel {
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #ffffff;
}

/* Language selector */
.role-lang-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.role-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-lang-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Role Icon Avatar */
.role-center-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.role-center-avatar.teal {
    background: #e6fcf5;
    color: #00c897;
}

.role-center-avatar.emerald {
    background: #ecfdf5;
    color: #059669;
}

.role-center-avatar.blue {
    background: #eff6ff;
    color: #2563eb;
}

/* Form Titles */
.role-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.role-form-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* Builder & Agent Tab Switcher */
.role-login-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 6px;
    margin-bottom: 1.75rem;
    border: 1px solid #e2e8f0;
}

.role-login-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.role-login-tab-btn:hover {
    color: var(--login-accent-blue);
}

.role-login-tab-btn.active {
    background: #ffffff;
    color: var(--login-accent-blue);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Form Inputs */
.role-form-group {
    margin-bottom: 1.25rem;
}

.role-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.45rem;
}

.role-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.role-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

.role-form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.65rem;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background-color: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.role-form-control:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.role-form-control::placeholder {
    color: #94a3b8;
}

/* Country Code Addon for Agent Phone Input */
.phone-addon-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
    overflow: hidden;
}

.phone-addon-wrapper:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.phone-prefix-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border-right: 1.5px solid #e2e8f0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    flex-shrink: 0;
}

.phone-prefix-input {
    width: 100%;
    border: none !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.92rem;
    box-shadow: none !important;
    background: transparent;
}

.phone-prefix-input:focus {
    outline: none !important;
}

/* Password Toggle Eye */
.role-password-toggle {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.2s ease;
}

.role-password-toggle:hover {
    color: #0f172a;
}

/* Remember & Forgot Sub-Row */
.role-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.role-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.role-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00c897;
    cursor: pointer;
}

.role-forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.role-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Submit Buttons */
.role-submit-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    margin-bottom: 1.5rem;
}

.role-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-gradient-teal-blue {
    background: linear-gradient(90deg, #00C897 0%, #0072FF 100%);
}

.btn-solid-emerald {
    background: #059669;
}

.btn-solid-emerald:hover {
    background: #047857;
}

.btn-solid-royal-blue {
    background: #0d6efd;
}

.btn-solid-royal-blue:hover {
    background: #0b5ed7;
}

.btn-deep-navy-blue {
    background: #1d4ed8;
}

.btn-deep-navy-blue:hover {
    background: #1e40af;
}

/* Social Login Divider & Buttons */
.role-social-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.role-social-divider::before,
.role-social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.role-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.role-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.role-social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Authorized Access Only Card (NGO & Government) */
.role-authorized-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    margin-bottom: 1.5rem;
}

.role-authorized-icon {
    font-size: 1.2rem;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 1px;
}

.role-authorized-text h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 2px 0;
}

.role-authorized-text p {
    font-size: 0.78rem;
    color: #15803d;
    margin: 0;
    line-height: 1.35;
}

/* Register Link at Bottom */
.role-register-cta {
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.role-register-cta a {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.role-register-cta a.blue-link {
    color: #2563eb;
}

.role-register-cta a:hover {
    text-decoration: underline;
}

/* Footer Assurance & Help Strip */
.role-login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 10px;
}

.role-footer-secure {
    display: flex;
    align-items: center;
    gap: 6px;
}

.role-footer-secure i {
    color: #16a34a;
}

.role-footer-help {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-footer-help a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}

.role-footer-help a:hover {
    color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .role-showcase-panel {
        padding: 2.25rem 1.5rem;
    }
    .role-form-panel {
        padding: 2.25rem 1.5rem;
    }
    .showcase-heading {
        font-size: 1.75rem;
    }
    .role-login-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
