﻿:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338ca;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: #334155;
    --input-border: #475569;
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    --bg-random-image: url('/images/bg-login.JPG');
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left/Main Form Side */
.login-container {
    width: 100%;
    max-width: 500px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

/* Right/Image Side */
.login-decoration {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff;
}

    .login-decoration::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: var(--bg-random-image);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        opacity: 1;
        animation: slowMove 20s infinite alternate;
    }

@keyframes slowMove {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    max-width: 400px;
    color: white;
    z-index: 1;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

    .glass-card h3 {
        font-family: var(--font-heading);
        font-weight: 600;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

.brand-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* Form Elements */
.form-label {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.3s ease;
}

.form-control-custom {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 16px 14px 45px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control-custom:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        background-color: #1e293b;
    }

        .form-control-custom:focus + .input-icon,
        .input-group-custom:focus-within .input-icon {
            color: var(--primary-color);
        }

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

    .password-toggle:hover {
        color: var(--text-main);
    }

/* Checkbox & Links */
.custom-checkbox .form-check-input {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    margin-right: 0.5rem;
}

    .custom-checkbox .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.custom-checkbox .form-check-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4338ca 100%);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    }

.login-footer {
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sign-up-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
}

    .sign-up-link:hover {
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 992px) {
    .login-decoration {
        display: none;
    }

    .login-container {
        max-width: 100%;
        padding: 2rem;
    }
}
