/* Premium Professional Login/Register Styling */

body {
    background-color: #f4f7f6;
    font-family: 'Open Sans', sans-serif;
}

/* Page Layout Container */
.container-fluid[style*="background: #fbfbfb;"] {
    background: transparent !important;
    padding: 60px 0 !important;
}

.row {
    align-items: center; /* Center the image and form vertically */
}

/* Image Section Styling */
.img-fluid.shadow {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.5s ease;
}

.img-fluid.shadow:hover {
    transform: translateY(-5px) scale(1.01);
}

/* Toggle Buttons (Pill design) */
.butns {
    background-color: #e9ecef;
    border-radius: 50px;
    padding: 5px;
    display: inline-flex !important;
    margin: 0 auto 30px auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.butns button {
    border-radius: 40px !important;
    padding: 10px 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #6c757d !important;
}

.butns button.active-toggle {
    background-color: #004d80 !important; /* Primary Brand Color */
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 77, 128, 0.3) !important;
}

.butns button:hover:not(.active-toggle) {
    color: #343a40 !important;
}

/* Form Containers (Cards) */
#loginForm, #registrationForm {
    background: #ffffff;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    padding: 40px !important;
    animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide using opacity instead of just display none for smoother transitions if JS permits, but since JS uses d-none, we apply animation to entry */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Fields (Floating style enhancement) */
.input-container {
    position: relative;
    margin-bottom: 25px;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 10px !important;
    padding: 12px 15px;
    padding-left: 50px !important; /* Space for icon */
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-shadow: none !important;
    width: 100% !important;
}

.form-control:focus, .form-select:focus {
    border-color: #004d80;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 77, 128, 0.1) !important;
}

/* Icons inside inputs */
.input-group-text {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border: none;
    background: transparent !important;
    color: #adb5bd;
    padding-left: 15px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.form-control:focus + .placeholder-overlay,
.form-control:not(:placeholder-shown) + .placeholder-overlay {
    /* If they use placeholder overlay */
    opacity: 0;
    visibility: hidden;
}

/* Headings */
#loginForm h3, #registrationForm h3 {
    font-family: 'Oswald', sans-serif;
    color: #212529;
    font-weight: 600;
    margin-bottom: 30px !important;
    letter-spacing: 0.5px;
}

/* Primary Button Override */
#loginForm .btn-primary, #registrationForm .btn-primary {
    background: linear-gradient(135deg, #004d80 0%, #003355 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 77, 128, 0.3);
}

#loginForm .btn-primary:hover, #registrationForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 77, 128, 0.4);
}

/* Links */
.text-primary {
    color: #004d80 !important;
    transition: color 0.3s ease;
}

.text-primary:hover {
    color: #003355 !important;
    text-decoration: underline !important;
}

/* Remove default placeholder hack if they used standard ones, but keep layout clean */
.placeholder-overlay {
    pointer-events: none;
    color: #6c757d;
    transition: 0.2s ease all;
}
