/* ==========================================================================
   MinimalCloud Authentication - Modern Pastel Soft-Glow Login Page
   ========================================================================== */

body {
    background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 50%, #f0fdf4 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    font-family: 'Sarabun', 'Public Sans', sans-serif !important;
    position: relative;
    overflow-x: hidden;
}

/* Dark mode background */
html.dark-style body,
[data-bs-theme="dark"] body {
    background: linear-gradient(135deg, #090d16 0%, #111827 50%, #0c1424 100%) !important;
    background-attachment: fixed !important;
}

/* Ambient pastel glowing orbs */
.authentication-wrapper {
    position: relative;
    z-index: 1;
}

.authentication-wrapper::before {
    content: '';
    position: fixed;
    top: -15%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.25) 0%, rgba(244, 114, 182, 0.08) 50%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.authentication-wrapper::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.2) 0%, rgba(192, 132, 252, 0.1) 50%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

html.dark-style .authentication-wrapper::before,
[data-bs-theme="dark"] .authentication-wrapper::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(217, 70, 239, 0.08) 50%, transparent 70%);
}

html.dark-style .authentication-wrapper::after,
[data-bs-theme="dark"] .authentication-wrapper::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
}

/* Card Styling: Glassmorphism with Pastel Border */
.authentication-inner .card {
    border-radius: 1.25rem !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.12), 0 0 1px 1px rgba(255, 255, 255, 0.8) inset !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html.dark-style .authentication-inner .card,
[data-bs-theme="dark"] .authentication-inner .card {
    background: rgba(17, 24, 39, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset !important;
}

.authentication-inner .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.18) !important;
}

/* Button & Form Controls */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
    transition: all 0.25s ease !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Standalone inputs have full rounded corners */
.form-control:not(.input-group > .form-control),
.form-select:not(.input-group > .form-select) {
    border-radius: 0.5rem !important;
}

html.dark-style .form-control,
[data-bs-theme="dark"] .form-control {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

.form-control:focus {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2) !important;
}

/* --------------------------------------------------------------------------
   Seamless Input Group Merge (Merged icons inside input container)
   -------------------------------------------------------------------------- */
.input-group-merge {
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-merge .input-group-text {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0;
    color: #94a3b8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-merge .form-control {
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-merge .input-group-text:first-child {
    border-right: 0 !important;
    border-top-left-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding-right: 0.5rem;
}

.input-group-merge .form-control:not(:first-child) {
    border-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    padding-left: 0.35rem;
}

.input-group-merge .form-control:not(:last-child) {
    border-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding-right: 0.35rem;
}

.input-group-merge .input-group-text:last-child {
    border-left: 0 !important;
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    padding-left: 0.5rem;
}

.input-group-merge > :not(:first-child) {
    margin-left: 0 !important;
}

/* Regular Input Group (buttons, prefixes, suffixes) */
.input-group:not(.input-group-merge) > :first-child {
    border-top-left-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group:not(.input-group-merge) > :last-child {
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group:not(.input-group-merge) > :not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

.input-group:not(.input-group-merge) > :not(:first-child) {
    margin-left: -1px !important;
}

/* Focus State for Merged Inputs */
.input-group-merge:focus-within {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22) !important;
    border-radius: 0.5rem;
}

.input-group-merge:focus-within .input-group-text,
.input-group-merge:focus-within .form-control {
    border-color: #818cf8 !important;
    box-shadow: none !important;
}

/* Dark Mode: Input Groups */
html.dark-style .input-group-merge .input-group-text,
[data-bs-theme="dark"] .input-group-merge .input-group-text {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}

html.dark-style .input-group-merge .form-control,
[data-bs-theme="dark"] .input-group-merge .form-control {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

html.dark-style .input-group-merge:focus-within .input-group-text,
html.dark-style .input-group-merge:focus-within .form-control,
[data-bs-theme="dark"] .input-group-merge:focus-within .input-group-text,
[data-bs-theme="dark"] .input-group-merge:focus-within .form-control {
    border-color: #818cf8 !important;
}

#logo {
    width: 24%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.15));
}

