/* Modern Login Styles - client_login.css */
/* Clean, professional design for multi-tenant e-commerce auth */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

/* Main container styling */
.outer_content_container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Subtle background pattern */
.outer_content_container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 20%);
    z-index: 1;
}

/* Main login card */
.centered_container {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Logo section */
.logo_section {
    text-align: center;
    margin-bottom: 32px;
}

.logo_image_log_in {
    max-width: 200px;
    max-height: 80px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Messages section */
.messages_section {
    margin-bottom: 24px;
}

.login-error-msg {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.4;
}

/* Alert styling (for SAML messages) */
.alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    border: none;
    font-size: 14px;
    line-height: 1.4;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
}

.alert ul.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.alert li {
    margin: 4px 0;
}

/* Form container */
.auth_form_container {
    width: 100%;
}

/* Form groups */
.form_group {
    margin-bottom: 24px;
}

/* Input containers */
.input_container {
    position: relative;
    width: 100%;
}

/* Form inputs */
#log_in input[type="text"],
#log_in input[type="password"] {
    width: 100%;
    padding: 16px 48px 16px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
    color: #374151;
}

#log_in input[type="text"]:focus,
#log_in input[type="password"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#log_in input[type="text"]:hover,
#log_in input[type="password"]:hover {
    border-color: #d1d5db;
}

/* Input icons */
.input_icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 14px;
}

#log_in input:focus + .input_icon {
    color: #6366f1;
}

/* Button base styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    line-height: 1;
    background: none;
}

/* Primary button (for both login types) */
.btn-primary {
    background: #6366f1;
    color: #ffffff;
}

.btn-primary:hover {
    background: #5856eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px -3px rgba(99, 102, 241, 0.3);
}

/* SSO specific button styling */
.btn-sso {
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
}

.btn-sso:hover {
    border-color: #6366f1;
    background: #f8fafc;
    color: #374151;
    text-decoration: none;
}

/* Generic login button */
.btn-login {
    margin-top: 8px;
}

/* Logout button */
.btn-logout {
    background: #dc2626;
    color: #ffffff;
    margin-top: 16px;
}

.btn-logout:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Form validation errors */
.notification.error {
    display: block;
    color: #dc2626;
    font-size: 14px;
    margin-top: 6px;
    text-align: left;
    padding-left: 4px;
}

/* Form footer */
.form_footer {
    text-align: center;
    margin-top: 20px;
}

.forgot_pass_a {
    color: #6366f1 !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.forgot_pass_a:hover {
    color: #5856eb !important;
    text-decoration: underline;
}

/* Help section */
.help_section {
    text-align: center;
    margin-top: 32px;
}

.help_section p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* SAML user info styling */
.saml_user_info {
    width: 100%;
}

.user_attributes {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:nth-child(even) {
    background: #f9fafb;
}

.table ul.list-unstyled {
    margin: 0;
    padding: 0;
    list-style: none;
}

.table ul.list-unstyled li {
    margin: 2px 0;
    color: #6b7280;
}

/* Auth actions container */
.auth_actions {
    text-align: center;
}

/* SSO login container */
.sso_login_container {
    text-align: center;
}

/* Product banner styling (prominent and centered) */
.banner_container {
    position: relative;
    z-index: 5;
    margin-top: 40px;
}

.banner_container.banner_1 {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 5;
}

.banner_images_wrapper {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.banner_container.banner_2 {
    position: absolute;
    top: 40px;
    right: 40px;
    margin-top: 0px;
}

.banner_img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.banner_img:hover {
    transform: scale(1.1);
}

.banner_img.gear_img {
    animation: slowRotate 20s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 480px) {
    .outer_content_container {
        padding: 20px 16px;
    }

    .logo_section {
        padding: 20px 24px;
        margin-bottom: 24px;
    }

    .logo_image_log_in {
        max-width: 250px;
        max-height: 100px;
    }

    .centered_container {
        padding: 32px 24px;
        border-radius: 12px;
    }

    #log_in input[type="text"],
    #log_in input[type="password"] {
        padding: 14px 40px 14px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .input_icon {
        right: 14px;
        font-size: 13px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    /* Keep banners visible but smaller on mobile */
    .banner_container.banner_1 {
        gap: 16px;
        padding: 16px;
        margin-top: 24px;
    }

    .banner_img {
        width: 45px;
        height: 45px;
    }

    .banner_img.gear_img {
        width: 55px;
        height: 55px;
    }

    .banner_container.banner_2 {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 360px) {
    .logo_section {
        padding: 16px 20px;
    }

    .logo_image_log_in {
        max-width: 220px;
        max-height: 90px;
    }

    .centered_container {
        padding: 24px 20px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .banner_container.banner_1 {
        gap: 12px;
        padding: 12px;
    }

    .banner_img {
        width: 40px;
        height: 40px;
    }

    .banner_img.gear_img {
        width: 50px;
        height: 50px;
    }
}

/* Medium screens */
@media (min-width: 768px) {
    .logo_section {
        padding: 32px 40px;
        margin-bottom: 40px;
    }

    .logo_image_log_in {
        max-width: 350px;
        max-height: 140px;
    }

    .banner_container.banner_1 {
        gap: 32px;
        padding: 32px;
        margin-top: 48px;
    }

    .banner_container.banner_2 {
        top: 40px;
        right: 40px;
    }

    .banner_img {
        width: 70px;
        height: 70px;
    }

    .banner_img.gear_img {
        width: 80px;
        height: 80px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .logo_section {
        padding: 40px 48px;
        margin-bottom: 48px;
    }

    .logo_image_log_in {
        max-width: 400px;
        max-height: 160px;
    }

    .centered_container {
        max-width: 440px;
        padding: 56px 48px;
    }

    .banner_container.banner_1 {
        gap: 40px;
        padding: 40px;
        margin-top: 56px;
    }

    .banner_img {
        width: 80px;
        height: 80px;
    }

    .banner_img.gear_img {
        width: 80px;
        height: 80px;
    }
}

/* Focus management for accessibility */
.btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

#log_in input:focus-visible {
    outline: none; /* Using custom focus styling instead */
}

/* Loading states (for future enhancements) */
.form_loading .btn {
    opacity: 0.7;
    pointer-events: none;
}

.form_loading input {
    opacity: 0.7;
}

/* Hover effects for the container */
.centered_container:hover {
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 20px 25px -5px rgba(0, 0, 0, 0.04);
}

/* Smooth transitions for interactive elements */
.centered_container,
.btn,
#log_in input,
.banner_img {
    transition: all 0.2s ease;
}

/* Print styles */
@media print {
    .banner_container {
        display: none;
    }

    .outer_content_container {
        background: #ffffff;
        min-height: auto;
    }

    .centered_container {
        box-shadow: none;
        border: 1px solid #000;
    }
}


/* Responsive adjustments for the nested design */
@media (max-width: 768px) {
    .banner_images_wrapper {
        gap: 20px;
        padding: 20px 24px;
    }

    .banner_img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .banner_images_wrapper {
        gap: 16px;
        padding: 16px 20px;
    }

    .banner_img {
        width: 45px;
        height: 45px;
    }
}