/* Custom Authentication Styles matching Brand Palette (#ed5022, #23ae5c, #414141, #ffffff) */

body.login_admin {
    background-color: #0c0d10 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(237, 80, 34, 0.18) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(35, 174, 92, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(65, 65, 65, 0.25) 0px, transparent 70%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Main Outer Wrapper */
.auth-main-wrapper {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

/* Split Card Container */
.login-container-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 580px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Left Hero Visual Panel */
.login-hero-panel {
    flex: 0 0 48%;
    width: 48%;
    background-color: #141518;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    box-sizing: border-box;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

/* Fluid Organic Wave Art Canvas */
.fluid-art-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fluid-art-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dynamic glowing organic blobs */
.blob-glow-1 {
    position: absolute;
    width: 360px;
    height: 360px;
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(237, 80, 34, 0.88) 0%, rgba(237, 80, 34, 0) 70%);
    filter: blur(45px);
    opacity: 0.88;
    animation: blob-pulse 8s infinite alternate ease-in-out;
}

.blob-glow-2 {
    position: absolute;
    width: 380px;
    height: 380px;
    bottom: -60px;
    right: -50px;
    background: radial-gradient(circle, rgba(35, 174, 92, 0.82) 0%, rgba(35, 174, 92, 0) 70%);
    filter: blur(50px);
    opacity: 0.82;
    animation: blob-pulse 10s infinite alternate-reverse ease-in-out;
}

.blob-glow-3 {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 35%;
    left: 25%;
    background: radial-gradient(circle, rgba(237, 80, 34, 0.6) 0%, rgba(65, 65, 65, 0) 70%);
    filter: blur(55px);
    opacity: 0.7;
}

@keyframes blob-pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(15px, -15px); }
}

/* Hero Content & Prominent Logo Placement */
.hero-content-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-logo-box {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    max-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo-box:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.hero-logo-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-logo-box img {
    max-width: 220px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none !important;
}

.hero-company-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-top: 10px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hero-company-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    max-width: 280px;
    line-height: 1.5;
}

/* Right Form Panel */
.login-form-panel {
    flex: 0 0 52%;
    width: 52%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 52px;
    box-sizing: border-box;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-title {
    font-size: 34px;
    font-weight: 800;
    color: #414141;
    margin: 0 0 6px 0;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Custom Input Fields */
.form-group-custom {
    margin-bottom: 22px;
}

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

.input-field-wrapper .form-control-custom {
    width: 100%;
    height: 52px;
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 48px 12px 18px;
    font-size: 15px;
    color: #414141;
    font-weight: 400;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.input-field-wrapper .form-control-custom:focus {
    background: #ffffff;
    border-color: #ed5022;
    box-shadow: 0 0 0 4px rgba(237, 80, 34, 0.12);
    outline: none;
}

.input-field-wrapper .input-icon-right {
    position: absolute;
    right: 18px;
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.input-field-wrapper .form-control-custom:focus + .input-icon-right {
    color: #ed5022;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.password-toggle-btn:hover {
    color: #ed5022;
    background: rgba(237, 80, 34, 0.08);
}

/* Links & Options */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 28px;
}

.custom-toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-toggle-switch input[type="checkbox"] {
    display: none !important;
}

.toggle-slider {
    position: relative;
    width: 38px;
    height: 22px;
    background-color: #d1d5db;
    border-radius: 20px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    display: inline-block;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.custom-toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #ed5022;
}

.custom-toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.toggle-label-text {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

.forgot-link {
    color: #ed5022;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #d84317;
    text-decoration: underline;
}

/* Primary Action Pill Button */
.btn-submit-brand {
    width: 100%;
    height: 52px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #ed5022 0%, #d94317 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 22px -4px rgba(237, 80, 34, 0.4);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.btn-submit-brand:hover {
    background: linear-gradient(135deg, #f25c2f 0%, #ed5022 100%);
    box-shadow: 0 14px 28px -4px rgba(237, 80, 34, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-submit-brand:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px -4px rgba(237, 80, 34, 0.35);
}

/* Alert tweaks */
.login-form-panel .alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-form-panel .alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.login-form-panel .alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Login Mode Tabs (Password vs Email OTP) */
.auth-mode-tabs {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: #ed5022;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn:hover:not(.active) {
    color: #414141;
}

/* OTP Send Button */
.btn-send-otp {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid #ed5022;
    background: #ffffff;
    color: #ed5022;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-send-otp:hover {
    background: rgba(237, 80, 34, 0.06);
    color: #d84317;
}

/* Responsive Layout */
@media (max-width: 991px) {
    body.login_admin {
        padding: 14px;
    }

    .auth-main-wrapper {
        max-width: 500px;
    }

    .login-container-card {
        flex-direction: column;
        min-height: auto;
        padding: 8px;
        border-radius: 20px;
    }

    .login-hero-panel {
        flex: none;
        width: 100%;
        min-height: 200px;
        border-radius: 14px;
        padding: 30px 20px;
    }

    .login-form-panel {
        flex: none;
        width: 100%;
        padding: 32px 20px;
    }

    .auth-title {
        font-size: 26px;
    }
}
