/* jiSECURE GSM GATEWAY - Standalone Auth Layout Styles (100% Local Assets) */
*, *::before, *::after {
    box-sizing: border-box;
}

body.gsm-auth-body {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background-color: #0A1628;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 122, 255, 0.22) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 59, 48, 0.12) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(15, 23, 42, 0.9) 0px, transparent 50%);
    background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.gsm-auth-main {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gsm-auth-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(10, 22, 40, 0.35), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

.gsm-brand-pane {
    position: relative;
    background: linear-gradient(135deg, #0A1628 0%, #0E1E36 55%, #081220 100%);
    color: #ffffff;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.gsm-watermark-svg {
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 380px;
    height: 380px;
    color: rgba(56, 189, 248, 0.06);
    pointer-events: none;
    user-select: none;
}

.gsm-brand-glow {
    position: absolute;
    top: -96px;
    left: -96px;
    width: 256px;
    height: 256px;
    background: rgba(0, 122, 255, 0.2);
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
}

.gsm-brand-inner {
    position: relative;
    z-index: 1;
}

.gsm-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.gsm-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gsm-logo-badge svg {
    width: 100%;
    height: 100%;
}

.gsm-brand-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.gsm-brand-title .ji {
    color: #FF3B30;
}

.gsm-brand-title .secure {
    color: #ffffff;
}

.gsm-brand-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #38bdf8;
    text-transform: uppercase;
}

.gsm-brand-heading {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 12px;
}

.gsm-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(203, 213, 225, 0.9);
    margin: 0 0 28px;
}

.gsm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    color: #e2e8f0;
}

.gsm-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.gsm-check-badge {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gsm-check-badge svg {
    width: 14px;
    height: 14px;
}

.gsm-support-wrap {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gsm-support-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.gsm-support-link:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.gsm-support-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.2);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gsm-support-icon svg {
    width: 15px;
    height: 15px;
}

.gsm-support-link strong {
    color: #ffffff;
    font-weight: 600;
}

.gsm-form-pane {
    background: #ffffff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gsm-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.gsm-form-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 6px 0 28px;
}

.gsm-form-subtitle strong {
    color: #334155;
    font-weight: 600;
}

.gsm-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.gsm-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.gsm-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.gsm-field-group {
    margin-bottom: 20px;
}

.gsm-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #334155;
    margin-bottom: 8px;
}

.gsm-req {
    color: #FF3B30;
}

.gsm-input-wrap {
    position: relative;
}

.gsm-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.gsm-input-icon svg,
.gsm-pw-toggle svg {
    width: 19px;
    height: 19px;
}

.gsm-input-field {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background-color: rgba(248, 250, 252, 0.85);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.15s ease;
}

.gsm-input-field-pw {
    padding-right: 44px;
}

.gsm-input-field::placeholder {
    color: #94a3b8;
}

.gsm-input-field:focus {
    background-color: #ffffff;
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.gsm-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.gsm-pw-toggle:hover {
    color: #475569;
}

.gsm-hidden {
    display: none !important;
}

.gsm-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 22px;
}

.gsm-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    margin: 0;
}

.custom-checkbox:checked {
    background-color: #007AFF;
    border-color: #007AFF;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.gsm-forgot-link {
    font-size: 14px;
    font-weight: 500;
    color: #007AFF;
    text-decoration: none;
}

.gsm-forgot-link:hover {
    color: #0284C7;
    text-decoration: underline;
}

.gsm-btn-signin {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #007AFF, #0284C7);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px -4px rgba(0, 122, 255, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.gsm-btn-signin:hover {
    background: linear-gradient(to right, #0066D6, #0369A1);
    box-shadow: 0 10px 24px -4px rgba(0, 122, 255, 0.55);
}

.gsm-btn-signin svg {
    width: 16px;
    height: 16px;
}

.gsm-copyright {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.8);
    letter-spacing: 0.02em;
}

.help-block,
.invalid-feedback {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

.gsm-field-group .help-block:not(:empty),
.gsm-field-group .invalid-feedback:not(:empty) {
    display: block;
}

@media (max-width: 900px) {
    .gsm-auth-card {
        grid-template-columns: 1fr;
    }
    .gsm-brand-pane {
        padding: 32px 28px;
    }
    .gsm-form-pane {
        padding: 32px 28px;
    }
}
