﻿/* css/login.css – Integrated with existing site colors */

:root {
    --primary-color: #8b5cf6;
    /* Purple */
    --primary-dark: #7c3aed;
    /* Dark Purple */
    --secondary-color: #ec4899;
    /* Pink */
    --accent-color: #f59e0b;
    /* Orange */
    --bg-color: #f8f9fa;
    /* Light Gray */
    --text-dark: #1f2937;
    /* Dark Text */
    --text-light: #6b7280;
    /* Light Text */
    --white: #ffffff;
    /* White */
    --shadow: 0 4px 6px rgba(0, 0, 0, .1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, .15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    width: 850px;
    height: 550px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Left Side - Gradient with site colors */
.login-left {
    width: 40%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .login-left h2 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .login-left p {
        font-size: 17px;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.4;
        margin-bottom: 0;
    }

.login-left-image {
    text-align: center;
    margin-top: auto;
}

    .login-left-image img {
        width: 200px;
        height: auto;
    }

/* Right Side - Form Section */
.login-right {
    width: 60%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 6px;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 4px rgba(139, 92, 246, 0.3);
    }

    .form-control::placeholder {
        color: var(--text-light);
    }

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
}

    .password-toggle:hover {
        color: var(--primary-color);
    }

.form-footer {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

    .form-footer a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .form-footer a:hover {
            text-decoration: underline;
        }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

    .btn-login:hover {
        box-shadow: var(--shadow-hover);
    }

    .btn-login:active {
        transform: scale(0.98);
    }

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e0e0e0;
    }

    .divider span {
        background: var(--white);
        padding: 0 10px;
        color: var(--text-light);
        font-size: 12px;
        position: relative;
        z-index: 1;
    }

.btn-signup {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .btn-signup:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow);
    }

.error-message {
    color: #ff6161;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.form-control.error {
    border-color: #ff6161;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

    .header-logo img {
        height: 50px;
        width: auto;
        margin-right: 10px;
    }

    .header-logo h3 {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        width: 95%;
        height: auto;
        flex-direction: column;
    }

    .login-left {
        width: 100%;
        padding: 30px 25px;
        min-height: 200px;
    }

        .login-left h2 {
            font-size: 22px;
        }

        .login-left p {
            font-size: 14px;
        }

    .login-left-image {
        display: none;
    }

    .login-right {
        width: 100%;
        padding: 30px 25px;
    }
}

/* Loading State */
.btn-login.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

    .btn-login.loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid var(--white);
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
