/* ==========================================================================
   TamgaES SSO - Modern Corporate Login Stylesheet
   Consistent with Enterprise Blue/White Header and Dark Footer Design System
   ========================================================================== */

/* Main SSO Container */
.ssocontainer {
    display: flex;
    flex-direction: row;
    max-width: 1040px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Left Panel: Login Interaction Area
   ========================================================================== */
.login-ssocontainer {
    flex: 1.15;
    background-color: #ffffff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background accent glow */
.login-ssocontainer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Watermark Background */
.login-watermark-bg {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 150px;
    height: auto;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* Login Header Area */
.login-ssocontainer .login-header {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
    display: block;
    width: 100%;
}

.login-ssocontainer .login-header .logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
    transition: transform 0.25s ease;
}

.login-ssocontainer .login-header .logo:hover {
    transform: scale(1.03);
}

.login-ssocontainer .login-header h1 {
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.login-ssocontainer .login-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
    width: auto;
}

/* Client App Context Pill */
.client-app-context {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-top: 18px;
    margin-bottom: 8px;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    position: relative;
    z-index: 1;
}

.client-logo-wrapper {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    padding: 4px;
}

.client-app-context .clientLogo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-app-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.client-app-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.client-app-name {
    font-size: 13px;
    color: #334155;
    margin: 0;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.client-app-name strong {
    color: #0f172a;
    font-weight: 600;
}

/* ==========================================================================
   Login Methods (Method Cards)
   ========================================================================== */
.login-methods.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.method-card {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
}

/* Top Accent Line for Method Cards */
.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transition: all 0.25s ease;
    opacity: 0;
}

.method-card[data-method="password"]::before {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.method-card[data-method="edevlet"]::before {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.method-card[data-method="eimza"]::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.method-card[data-method="passwordless"]::before {
    background: linear-gradient(90deg, #4f46e5, #818cf8);
}

/* Card Hover, Focus and Active States */
.method-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 4px 10px -2px rgba(37, 99, 235, 0.04);
}

.method-card:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
    border-color: #2563eb;
}

.method-card:hover::before,
.method-card:focus-visible::before {
    opacity: 1;
}

.method-card.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 8px 20px -4px rgba(37, 99, 235, 0.08);
}

.method-card.active::before {
    opacity: 1;
}

/* Method Header Layout */
.method-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    width: 100%;
    gap: 14px;
    user-select: none;
    transition: background-color 0.2s ease;
}

.method-card:hover .method-header {
    background-color: rgba(248, 250, 252, 0.7);
}

/* Method Icon Container */
.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.method-card:hover .method-icon {
    transform: scale(1.06);
}

.method-card[data-method="password"] .method-icon {
    background-color: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.method-card[data-method="edevlet"] .method-icon {
    background-color: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.method-card[data-method="eimza"] .method-icon {
    background-color: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.method-card[data-method="passwordless"] .method-icon {
    background-color: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}

/* Method Text Area */
.method-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.method-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.method-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    display: block;
    white-space: normal;
    word-break: break-word;
}

/* Action Arrow Indicator */
.method-action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.method-card:hover .method-action-arrow {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(3px);
}

/* ==========================================================================
   Right Panel: Enterprise Security & Brand Showcase
   ========================================================================== */
.info-ssocontainer {
    flex: 1;
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
                radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
                #1a1714;
    color: #ffffff;
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Background Subtle Grid Texture */
.info-ssocontainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M0 40 L40 40 M40 0 L40 40" fill="none" stroke="rgba(255,255,255,0.025)" stroke-width="1"/></svg>');
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.info-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Security Badge */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-badge i {
    color: #60a5fa;
    font-size: 12px;
}

/* Info Title & Description */
.info-content h2 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.25;
}

.info-content p {
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.82);
    font-weight: 400;
}

/* Feature Items */
.features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.feature:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateX(3px);
}

.feature-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.18);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px 0;
    letter-spacing: -0.01em;
}

.feature-text p {
    font-size: 12px;
    color: rgba(203, 213, 225, 0.75);
    margin: 0;
    line-height: 1.45;
}

/* Trust Strip at Bottom of Info Panel */
.info-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(203, 213, 225, 0.8);
    font-size: 11.5px;
    font-weight: 500;
}

.trust-item i {
    color: #38bdf8;
    font-size: 11px;
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */
#loading-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.loading-overlay-img {
    width: 48px;
    margin: 0 auto 16px auto;
    display: block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .ssocontainer {
        flex-direction: column;
        max-width: 580px;
        margin: 24px auto;
        border-radius: 20px;
    }

    .login-ssocontainer,
    .info-ssocontainer {
        padding: 38px 30px;
    }

    .info-ssocontainer {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .features {
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .ssocontainer {
        margin: 12px 0;
        border-radius: 16px;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    }

    .login-ssocontainer,
    .info-ssocontainer {
        padding: 26px 18px;
    }

    .login-ssocontainer .login-header .logo {
        height: 58px;
        margin-bottom: 14px;
    }

    .login-ssocontainer .login-header h1 {
        font-size: 21px;
    }

    .login-ssocontainer .login-header p {
        font-size: 13px;
    }

    .login-methods.accordion {
        gap: 10px;
        margin-top: 18px;
    }

    .method-header {
        padding: 12px 14px;
        gap: 12px;
    }

    .method-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .method-text h3 {
        font-size: 14px;
    }

    .method-desc {
        font-size: 11.5px;
    }

    .method-action-arrow {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .info-content h2 {
        font-size: 22px;
    }

    .info-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .feature {
        padding: 11px 12px;
        gap: 12px;
    }

    .feature-icon-box {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .info-trust-strip {
        gap: 8px;
    }

    .trust-item {
        font-size: 11px;
        padding: 4px 10px;
    }
}
