/* Kinetic Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

/* ===== BRANDING PANEL (LEFT SIDE) ===== */
.branding-panel {
    flex: 1;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 50%, #004494 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.branding-panel::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

.logo-section {
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.features-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===== LOGIN PANEL (RIGHT SIDE) ===== */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #ffffff;
}

.login-container {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

/* ===== FORM STYLES ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-kinetic {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label-kinetic {
    font-size: 0.875rem;
    font-weight: 500;
    color: #344054;
    letter-spacing: 0.01em;
}

.form-control-kinetic {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a2e;
    background-color: #ffffff;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.form-control-kinetic::placeholder {
    color: #98a2b3;
}

.form-control-kinetic:hover {
    border-color: #98a2b3;
}

.form-control-kinetic:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

.checkbox-kinetic {
    width: 16px;
    height: 16px;
    border: 2px solid #d0d5dd;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #0d6efd;
}

.forgot-password-link {
    font-size: 0.875rem;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ===== BUTTON STYLES ===== */
.btn-kinetic-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    margin-top: 0.5rem;
}

.btn-kinetic-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

.btn-kinetic-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.btn-kinetic-primary svg {
    transition: transform 0.3s ease;
}

.btn-kinetic-primary:hover svg {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.signup-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.signup-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ===== VALIDATION MESSAGES ===== */
.validation-message {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.validation-summary {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #dc3545;
    font-size: 0.875rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .branding-panel {
        display: none;
    }

    .login-panel {
        flex: 1;
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    }

    .login-container::before {
        content: '';
        display: block;
        width: 80px;
        height: 80px;
        background-image: url('/images/kinetic-logo.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0 auto 1.5rem auto;
    }

    .login-container {
        padding: 2.5rem 1.75rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .login-panel {
        padding: 2rem 1.5rem;
    }

    .login-container {
        max-width: 100%;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 1.5rem 1rem;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .brand-title {
        font-size: 2.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-panel {
        background: #1a1a2e;
    }

    .login-title {
        color: #ffffff;
    }

    .login-subtitle {
        color: #b0b0b0;
    }

    .form-label-kinetic {
        color: #e0e0e0;
    }

    .form-control-kinetic {
        background-color: #2d2d3a;
        border-color: #3d3d4a;
        color: #ffffff;
    }

    .form-control-kinetic::placeholder {
        color: #787890;
    }

    .form-control-kinetic:hover {
        border-color: #5d5d6a;
    }

    .remember-me-label {
        color: #e0e0e0;
    }

    .signup-text {
        color: #b0b0b0;
    }

    @media (max-width: 1024px) {
        .login-panel {
            background: #1a1a2e;
        }
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 1.5rem 1rem;
    }

    .login-container {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-kinetic-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ----------------------------------------------------------
   Dark authentication refresh
----------------------------------------------------------- */
:root {
    --primary-color: #7c9bff;
    --secondary-color: #42e3ff;
    --accent-color: #ff7cd8;
    --dark-color: #f4f6ff;
    --light-color: #05060f;
    --border-soft: rgba(255, 255, 255, 0.08);
    --surface-panel: rgba(6, 10, 26, 0.9);
}

.login-page {
    background: radial-gradient(circle at 30% 15%, rgba(124, 155, 255, 0.35), transparent 45%), radial-gradient(circle at 80% 0%, rgba(66, 227, 255, 0.25), transparent 35%), #05060f;
    color: var(--dark-color);
}

.branding-panel {
    background: radial-gradient(circle at 10% 20%, rgba(255, 124, 216, 0.35), transparent 40%), linear-gradient(135deg, rgba(5, 6, 22, 0.95), rgba(9, 12, 32, 0.85));
    border-right: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
}

.branding-panel::before {
    opacity: 0.4;
}

.brand-logo {
    filter: drop-shadow(0 20px 60px rgba(7, 13, 44, 0.8));
}

.brand-title,
.brand-subtitle {
    color: var(--dark-color);
    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.feature-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
}

.feature-item:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(124, 155, 255, 0.5);
}

.feature-icon {
    color: var(--secondary-color);
}

.login-panel {
    background: var(--surface-panel);
    backdrop-filter: blur(22px);
    border-left: 1px solid var(--border-soft);
}

.login-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: 0 25px 65px rgba(5, 6, 15, 0.65);
}

.login-title {
    color: var(--dark-color);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 2.85rem);
}

.login-subtitle {
    color: var(--secondary-color);
}

.form-label-kinetic {
    color: var(--dark-color);
}

.form-control-kinetic {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    color: var(--dark-color);
}

.form-control-kinetic::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control-kinetic:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(124, 155, 255, 0.25);
}

.remember-me-label {
    color: var(--dark-color);
}

.btn-kinetic-primary {
    border-radius: 999px;
    background-image: linear-gradient(120deg, var(--secondary-color), var(--primary-color), var(--accent-color));
    box-shadow: 0 18px 45px rgba(66, 227, 255, 0.35);
}

.btn-kinetic-primary:hover {
    transform: translateY(-3px);
}

.signup-text {
    color: var(--muted-color, #9ca8c9);
}

.signup-link {
    color: var(--secondary-color);
}

.validation-summary {
    background: rgba(248, 113, 113, 0.1);
    border-left-color: var(--danger-color, #f87171);
}
