@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #6C63FF;
    --primary-dark: #4834D4;
    --bg-light: #E0E7FF;
    --text-color: #2D3436;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
    background: var(--bg-light);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 900px;
    height: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Background elements */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    opacity: 0.5;
}

body::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    bottom: -50px;
    right: 10%;
    opacity: 0.8;
}

.login-form-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-weight: 700;
    font-size: 28px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.login-header p {
    color: #636e72;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: none;
    background: #f1f2f6;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #e1e2e6;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.login-btn:hover {
    background: var(--primary-dark);
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    font-size: 13px;
    color: #b2bec3;
    position: relative;
    margin-bottom: 20px;
}

.social-login p::before, .social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #dfe6e9;
}

.social-login p::before { left: 0; }
.social-login p::after { right: 0; }

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
}

.social-btn:hover {
    background: #f8f9fa;
}

.social-btn img {
    width: 20px;
    margin-right: 10px;
}

.login-image-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 100 C 20 80, 40 80, 60 100 M60 100 C 80 120, 100 120, 120 100" stroke="rgba(255,255,255,0.1)" fill="transparent" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.glass-box {
    width: 80%;
    height: 80%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.glass-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-info {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    font-size: 12px;
    color: #b2bec3;
    z-index: 5;
}

.error-message {
    background: #ff7675;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 900px) {
    .login-container {
        width: 95%;
        flex-direction: column;
        height: auto;
    }
    .login-image-section {
        display: none;
    }
}
