/* ==========================================================================
   DG-MART Modern Split Auth Stylesheet (Login & Registration)
   File: assets/front/css/login.css
   ========================================================================== */

/* Outer Section (Compact gap above & below the auth card) */
.dg-login-portal-section {
    background: #f1f5f9;
    padding: 24px 0 28px;
    width: 100%;
}

.dg-login-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
}

.dg-split-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px -10px rgba(11, 35, 86, 0.16), 0 6px 18px -4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    border: 1px solid rgba(226, 232, 240, 0.85);
}

/* --------------------------------------------------------------------------
   Left Column: Brand & Features Showcase
   -------------------------------------------------------------------------- */
.dg-left-brand-panel {
    background: linear-gradient(150deg, #0d286d 0%, #081d4f 55%, #051336 100%);
    padding: 36px 36px 26px;
    color: #ffffff;
    flex: 1 1 48%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.dg-left-brand-panel::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dg-left-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Logo Card */
.dg-brand-logo-card {
    background: #ffffff;
    padding: 12px 22px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    max-width: 200px;
    margin-bottom: 18px;
    margin-right: 12px;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.dg-brand-logo-card:hover {
    transform: translateY(-2px);
}

.dg-brand-logo-card img {
    max-height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Badge Pill */
.dg-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #e2e8f0;
    margin-bottom: 18px;
    vertical-align: middle;
    width: fit-content;
    text-transform: uppercase;
}

.dg-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 8px #f97316;
    display: inline-block;
}

/* Brand Title & Tagline */
.dg-brand-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 5px 0;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.dg-brand-slogan {
    color: #ffb703;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 3px;
}

.dg-brand-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    margin-bottom: 20px;
    line-height: 1.45;
}

/* 3 Feature Boxes */
.dg-features-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 20px;
}

.dg-feature-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: all 0.25s ease;
}

.dg-feature-item:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.dg-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #93c5fd;
    flex-shrink: 0;
}

.dg-feature-text {
    flex: 1;
}

.dg-feature-heading {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.dg-feature-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.35;
}

/* Brand Footer Bar */
.dg-brand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Right Column: Modern Auth Form Card (Login & Register)
   -------------------------------------------------------------------------- */
.dg-right-form-panel {
    background: #ffffff;
    padding: 36px 38px 30px;
    flex: 1 1 52%;
    max-width: 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Secure Portal Badge */
.dg-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 11px;
    border-radius: 30px;
    margin-bottom: 12px;
    width: fit-content;
}

/* Form Titles */
.dg-form-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f2963;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.dg-form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

/* Input Fields & Groups */
.dg-form-group {
    margin-bottom: 13px;
}

.dg-field-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

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

.dg-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.dg-input-control {
    width: 100%;
    height: 44px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 0 38px 0 38px;
    font-size: 13.5px;
    color: #1e293b;
    transition: all 0.2s ease;
}

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

.dg-input-control:focus + .dg-input-icon,
.dg-input-wrapper:focus-within .dg-input-icon {
    color: #2563eb;
}

/* Select Dropdown Styling */
select.dg-input-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Password Eye Toggle */
.dg-eye-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.dg-eye-toggle:hover {
    color: #1e293b;
}

.dg-field-error {
    color: #ef4444;
    font-size: 11.5px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

/* Checkbox & Forgot Password Row */
.dg-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 18px;
}

.dg-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12.5px;
    color: #475569;
    user-select: none;
    margin: 0;
}

.dg-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2563eb;
    cursor: pointer;
}

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

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

/* Submit CTA Button (Vibrant Orange Gradient) */
.dg-btn-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
    transition: all 0.25s ease;
    margin-top: 6px;
}

.dg-btn-submit:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Divider */
.dg-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
}

.dg-divider::before,
.dg-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.dg-divider span {
    padding: 0 12px;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Secondary Button (Sign In / Register) */
.dg-btn-register {
    width: 100%;
    height: 44px;
    border: 1.5px solid #0f2963;
    border-radius: 9px;
    background: #ffffff;
    color: #0f2963;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dg-btn-register:hover {
    background: #0f2963;
    color: #ffffff;
}

/* Trust Line */
.dg-trust-note {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Alerts */
.dg-alert {
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 12.5px;
    margin-bottom: 15px;
}

/* Registration Grid Spacing */
.dg-reg-row {
    margin-left: -6px;
    margin-right: -6px;
}

.dg-reg-row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

/* Captcha wrapper */
.dg-captcha-wrapper {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive Layout (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .dg-login-portal-section {
        padding: 16px 0 24px;
    }

    .dg-split-card {
        flex-direction: column;
        border-radius: 16px;
    }

    .dg-left-brand-panel,
    .dg-right-form-panel {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .dg-left-brand-panel {
        padding: 26px 20px 22px;
    }

    .dg-right-form-panel {
        padding: 26px 20px 22px;
    }

    .dg-brand-title {
        font-size: 22px;
    }

    .dg-form-title {
        font-size: 20px;
    }
}
