@import 'common.css';

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #f4f6f9;
    --text-color: #333;
    --border-radius: 8px;
}

html, body {
    margin: 0;
    padding: 0;
}

body.login-page {
    background-color: var(--background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.login-image-section {
    background-image: url('../img/login-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 99%;
}

.login-image-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99%;
    background: linear-gradient(135deg, rgba(0,123,255,0.8) 0%, rgba(0,255,187,0.8) 100%);
}

.login-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.login-text-overlay h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    height: 99%;
    padding: 2rem;
}

.login-form-wrapper {
    width: 99%;
    max-width: 400px;
}

.login-logo {
    max-width: 200px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-form {
    width: 99%;
}

.login-form .form-floating {
    margin-bottom: 1rem;
}

.login-form .form-floating input {
    border-radius: var(--border-radius);
}

.login-form .btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.login-form .btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.login-divider span {
    background-color: white;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    color: var(--secondary-color);
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e0e0e0;
    z-index: 0;
}

.social-login-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.social-login-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.social-login-btn.facebook { background-color: #3b5998; }
.social-login-btn.google { background-color: #db4437; }
.social-login-btn.twitter { background-color: #1da1f2; }

.login-form a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-form a:hover {
    color: darken(var(--primary-color), 15%);
    text-decoration: underline;
}

.alert-danger {
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.alert-danger i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .login-image-section {
        display: none;
    }

    .login-form-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-form-wrapper {
        padding: 1rem;
    }

    .social-login-btn {
        width: 40px;
        height: 40px;
    }
}