﻿
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #f7f9fc;
    --accent-color: #ef476f;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.login-left {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 50%;
}

.login-right {
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 50%;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
}

.login-heading {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #4361ee, #3a56d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-subheading {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: var(--text-color);
}

.input-group {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: var(--transition);
}

    .input-group:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    }

.input-icon {
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.form-control {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 14px;
    background: transparent;
    width: 100%;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-top: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

    .btn-login:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.welcome-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.welcome-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 90%;
    position: relative;
    z-index: 2;
}

.validation-error {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.forgot-password {
    text-align: right;
    font-size: 14px;
    margin-bottom: 1.5rem;
}

    .forgot-password a {
        color: var(--primary-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }

.decoration-circles {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.circle-1 {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
}

.circle-2 {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toast styling */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 10px;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-header {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-body {
    padding: 1rem;
    color: var(--text-color);
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .login-container {
        flex-direction: column;
    }

    .login-left, .login-right {
        width: 100%;
    }

    .login-left {
        padding: 3rem 2rem;
    }

    .login-form {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .welcome-text {
        font-size: 2rem;
        text-align: center;
    }

    .welcome-description {
        text-align: center;
        margin: 0 auto 2rem;
    }

    .illustration-container {
        display: none;
    }
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.flex-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}


