/* Modern Animated Login Styles - Blue Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-darker: #1e40af;
    --primary-light: #93c5fd;
    --primary-ultra-light: #dbeafe;
    --primary-bg: #eff6ff;
    --accent: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-light: #f0f4f8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 16px -2px rgba(59, 130, 246, 0.08);
    --shadow-xl: 0 12px 24px -4px rgba(59, 130, 246, 0.12);
    --shadow-2xl: 0 25px 50px -12px rgba(59, 130, 246, 0.15);
}
/* Add this to your CSS content */
.kic-logo-image {
    max-width: 60px !important; /* Smaller size works best for side-by-side layouts */
    height: auto;
}
.kic-logo-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
.kic-login-wrapper {
        display: flex;
        align-items: stretch;
        justify-content: center;
        min-height: 100vh;
        width: 100%;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
        overflow-x: hidden;
    }

.kic-login-wrapper.loaded {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Left Panel - Marketing */
.kic-left-panel {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 60px;
        min-width: 50%;
    }

.kic-floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.4;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    animation: float 10s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    animation: float 12s ease-in-out infinite reverse;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0) 70%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.kic-left-content {
    position: relative;
    z-index: 1;
    max-width: 580px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-dark);
    animation: slideDown 0.6s ease-out 0.2s both;
    transition: all 0.3s ease;
}

.kic-badge:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kic-main-heading {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    animation: slideDown 0.8s ease-out 0.3s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    animation: gradientShift 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.kic-subheading {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
    animation: slideDown 0.8s ease-out 0.4s both;
}

.kic-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.kic-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    animation: slideDown 0.8s ease-out both;
    padding: 4px 0;
}

.kic-feature:nth-child(1) { animation-delay: 0.5s; }
.kic-feature:nth-child(2) { animation-delay: 0.6s; }
.kic-feature:nth-child(3) { animation-delay: 0.7s; }

.kic-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-dark);
}

.kic-feature:hover .kic-feature-icon {
    transform: translateY(-4px) scale(1.08) rotate(5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.kic-feature h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.kic-feature p {
    font-size: 14px;
    color: var(--text-secondary);
}

.kic-testimonial {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    animation: slideDown 0.8s ease-out 0.8s both;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transition: all 0.3s ease;
}

.kic-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.25);
}

.kic-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    color: #FFA500;
}

.kic-testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
    color: var(--text-primary);
    font-weight: 500;
}

.kic-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kic-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.kic-author-avatar:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.kic-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kic-author-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.kic-author-title {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Right Panel - Form */
.kic-right-panel {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        min-width: 50%;
    }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kic-form-container {
    width: 100%;
    max-width: 380px;
    background: var(--bg-primary);
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kic-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.kic-form-container:hover {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kic-brand-header {
    margin-bottom: 32px;
    animation: slideDown 0.8s ease-out 0.4s both;
}

.kic-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kic-logo-icon {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.kic-logo-icon svg {
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.2));
    transition: all 0.3s ease;
}

.kic-logo:hover .kic-logo-icon svg {
    filter: drop-shadow(0 6px 16px rgba(59, 130, 246, 0.3));
    transform: scale(1.05);
}

.kic-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.kic-brand-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kic-welcome {
    text-align: center; /* Text aligns relative to the logo now */
    margin-bottom: 0; 
}

.kic-welcome h2 {
    font-size: 24px; /* Slightly smaller to fit better next to the logo */
    margin-bottom: 0;
    line-height: 1;
}

.kic-welcome p {
    display: none; /* Optional: Hide the subtext to keep the header clean in a row */
}

/* Form Overrides */
.um-form {
    margin: 0 !important;
    animation: slideDown 0.8s ease-out 0.6s both;
}

.um-field-label {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    letter-spacing: 0.02em !important;
    display: block !important;
}

.um-field-area {
    margin-bottom: 20px !important;
}

.um-field-area input[type="text"],
.um-field-area input[type="email"],
.um-field-area input[type="password"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: var(--primary-ultra-light) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.um-field-area input[type="text"]:hover,
.um-field-area input[type="email"]:hover,
.um-field-area input[type="password"]:hover {
    border-color: var(--primary-light) !important;
    background: var(--bg-primary) !important;
}

.um-field-area input::placeholder {
    color: var(--text-secondary) !important;
}

.um-field-area input:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px) !important;
    background: var(--bg-primary) !important;
}

.um-button {
    width: 100% !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3), 0 0 0 0 rgba(59, 130, 246, 0.5) !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.02em !important;
}

.um-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s ease;
}

.um-button:hover {
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%) !important;
}

.um-button:hover::before {
    left: 100%;
}

.um-button:active {
    transform: translateY(-1px) scale(0.99) !important;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3) !important;
}

.kic-signup-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    animation: slideDown 0.8s ease-out 0.7s both;
}

.kic-signup-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.kic-signup-link a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.kic-signup-link a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.kic-signup-link a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .kic-left-panel {
        padding: 40px 30px;
    }
    .kic-main-heading {
        font-size: 40px;
    }
    .kic-right-panel {
        width: 45%;
    }
    .kic-form-container {
        max-width: 360px;
        padding: 40px 32px;
    }
}

@media (max-width: 900px) {
    .kic-login-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    .kic-right-panel {
        order: 2;
        width: 100%;
        padding: 40px 16px 20px 16px;
        align-items: center;
        justify-content: center;
    }
    .kic-form-container {
        width: 100%;
        max-width: 400px;
        padding: 40px;
        text-align: center;
    }
    .kic-left-panel {
        order: 1;
        width: 100%;
        padding: 40px 24px;
        min-height: auto;
    }
    .kic-main-heading {
        font-size: 32px;
    }
    .kic-features {
        margin-bottom: 24px;
    }
    .kic-left-content {
        max-width: 100%;
    }
    .kic-welcome h2 {
        font-size: 28px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .kic-right-panel {
        padding: 32px 12px 16px 12px;
    }
    .kic-form-container {
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 14px;
    }
    .kic-welcome h2 {
        font-size: 24px;
         text-align: center;
    }
    .kic-brand-name {
        font-size: 18px;
    }
    .um-field-area input[type="text"],
    .um-field-area input[type="email"],
    .um-field-area input[type="password"] {
        padding: 11px 14px !important;
        font-size: 13px !important;
    }
    .um-button {
        padding: 11px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .kic-left-panel {
        padding: 32px 16px;
    }
    .kic-welcome {
        margin-bottom: 20px;
         text-align: center;
    }
    .kic-welcome h2 {
        font-size: 22px;
         text-align: center;
    }
    .kic-main-heading {
        font-size: 28px;
    }
    .kic-subheading {
        font-size: 14px;
    }
   .kic-brand-header {
    display: flex;
    flex-direction: row; /* Aligns items horizontally */
    align-items: center; /* Centers items vertically relative to each other */
    justify-content: center; /* Centers the whole group in the middle of the form */
    gap: 12px; /* Adds space between the logo and the text */
    margin-bottom: 20px;
    width: 100%;
}
    .kic-brand-tagline {
        font-size: 11px;
    }
}