* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #111;
    --secondary-color: #555;
    --accent-color: #000;
    --bg-color: #fff;
    --error-color: #e74c3c;
    --border-color: #e1e1e1;
    --focus-color: #000;
    --transition-speed: 0.3s;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 20px;
}

.container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    height: 600px;
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.login-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-header p {
    font-size: 14px;
    color: var(--secondary-color);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px 45px 16px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition-speed) ease;
}

.input-group input:focus {
    border-color: var(--focus-color);
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
    pointer-events: none;
    font-size: 15px;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 10px;
    font-size: 12px;
    background-color: var(--bg-color);
    padding: 0 5px;
}

.input-group .input-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-color);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-right: 8px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--secondary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-speed) ease;
}

.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-btn {
    padding: 14px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform 0.1s ease;
}

.login-btn:hover {
    background-color: #2a2a2a;
}

.login-btn:active {
    transform: scale(0.98);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 5px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.separator span {
    padding: 0 10px;
    font-size: 14px;
    color: var(--secondary-color);
}

.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform 0.1s ease;
}

.social-btn:hover {
    background-color: #f5f5f5;
}

.social-btn:active {
    transform: scale(0.98);
}

.form-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--secondary-color);
}

.form-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.form-footer a:hover {
    text-decoration: underline;
}

.login-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: none;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.quote {
    max-width: 300px;
}

.quote p {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 300;
}

.quote span {
    font-size: 14px;
    opacity: 0.8;
}

/* Focus states for accessibility */
input:focus,
button:focus {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (min-width: 768px) {
    .login-image {
        display: block;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 450px;
        height: auto;
        box-shadow: none;
    }
    
    .login-container {
        padding: 30px 20px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header, .input-group, .form-options, .login-btn, .separator, .social-login, .form-footer {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.form-header {
    animation-delay: 0.1s;
}

.input-group:nth-child(1) {
    animation-delay: 0.2s;
}

.input-group:nth-child(2) {
    animation-delay: 0.3s;
}

.form-options {
    animation-delay: 0.4s;
}

.login-btn {
    animation-delay: 0.5s;
}

.separator {
    animation-delay: 0.6s;
}

.social-login {
    animation-delay: 0.7s;
}

.form-footer {
    animation-delay: 0.8s;
}
