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

:root {
    --primary-color: #4285F4;
    --primary-light: #a7c7ff;
    --primary-dark: #0d47a1;
    --secondary-color: #F0F8FF;
    --text-color: #333;
    --error-color: #e53935;
    --success-color: #43a047;
}

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

body {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e6f2ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.container {
    display: flex;
    width: 100%;
    max-width: 450px;
    min-height: 80vh;
    margin: 0 auto;
}

.login-image {
    flex: 1;
    background-image: url('../images/login-background.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px 0 0 10px;
    display: block;
    max-width: 50%;
}

@media (min-width: 992px) {
    .login-image {
        display: none;
    }
}

.login-form-container {
    flex: 0 1 400px;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.custom-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo-circles {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    display: inline-block;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
    margin-top: 15px;
}

.logo-subtext {
    font-size: 18px;
    color: #333;
    margin-top: 5px;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.terms-consent {
    margin: 15px 0;
    text-align: center;
    font-size: 14px;
    color: #333;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.terms-consent a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-consent a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.form-check.remember-me {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px !important;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    text-align: right;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.social-login {
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-login-text {
    text-align: center;
    font-size: 14px;
    color: #777;
    position: relative;
    margin-bottom: 15px;
}

.social-login-text::before,
.social-login-text::after {
    content: "";
    display: block;
    width: 25%;
    height: 1px;
    background: #ddd;
    position: absolute;
    top: 50%;
}

.social-login-text::before {
    left: 0;
}

.social-login-text::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.google-btn {
    color: #DB4437;
}

.facebook-btn {
    color: #4267B2;
}

.twitter-btn {
    color: #1DA1F2;
}

.signup-container {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

.signup-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-container a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.flashes {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.flashes li {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #f8d7da;
    color: #721c24;
    text-align: center;
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error .form-control {
    border-color: var(--error-color);
}

.error .error-message {
    display: block;
}

/* User profile styles after login */
.user-profile {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-info {
    margin-bottom: 20px;
}

.profile-info h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.profile-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.logout-section {
    margin: 25px 0;
    text-align: center;
}

.dashboard-links {
    margin-top: 20px;
}

.dashboard-links h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 15px;
}

.dashboard-links ul {
    list-style: none;
    padding: 0;
}

.dashboard-links li {
    margin-bottom: 10px;
}

.dashboard-links a {
    display: block;
    padding: 12px 15px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashboard-links a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

/* Media Queries */
@media (max-width: 991px) {
    .container {
        flex-direction: column;
        min-height: auto;
    }

    .login-form-container {
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .login-form-container {
        padding: 30px 20px;
    }
}
