/**
 * Modern Login Styles for E-BPHTB Sidoarjo
 * Matches modern 2-column card UI mockup
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body.modern-login-body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f3f4f6;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

.login-viewport {
    width: 100%;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-container {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Left Column: Form */
.login-col-form {
    flex: 1.1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login-logo-wrap {
    margin-bottom: 20px;
}

.login-logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.login-heading {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
}

.login-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.login-alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13.5px;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-alert-box i {
    font-size: 16px;
    flex-shrink: 0;
}

.form-group-modern {
    margin-bottom: 16px;
    position: relative;
}

.modern-input-control {
    width: 100%;
    height: 48px;
    padding: 12px 18px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.modern-input-control:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.modern-input-control::placeholder {
    color: #94a3b8;
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap .modern-input-control {
    padding-right: 48px;
}

.password-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: color 0.2s ease;
}

.password-eye-btn:hover {
    color: #475569;
}

/* Turnstile / Security Challenge Area */
.turnstile-box-wrap {
    margin-top: 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: flex-start;
}

.turnstile-simulated-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.turnstile-simulated-card .ts-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #16a34a;
}

.turnstile-simulated-card .ts-brand {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Submit Button */
.btn-login-action {
    width: 100%;
    height: 48px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-login-action:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-login-action:active {
    transform: translateY(0);
}

.login-register-prompt {
    margin-top: 26px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.login-register-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.login-register-link:hover {
    text-decoration: underline;
}

/* Right Column: Info & Service Center */
.login-col-info {
    flex: 1;
    background: #fafbfc;
    border-left: 1px solid #f1f5f9;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.info-cards-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.info-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.info-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.info-card-text {
    flex: 1;
}

.info-card-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.info-card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

.info-card-desc a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.info-card-desc a:hover {
    text-decoration: underline;
}

/* Hotline WhatsApp Button */
.btn-hotline-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981;
    color: #ffffff;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.btn-hotline-wa:hover {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-hotline-wa i {
    font-size: 17px;
}

/* Digicert Seal Footer */
.login-security-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 14px;
}

.digicert-seal-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.security-text {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .login-card-container {
        flex-direction: column;
        max-width: 480px;
    }

    .login-col-form {
        padding: 36px 28px;
    }

    .login-col-info {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding: 36px 28px;
    }
}
