/* Base Styles */
:root {
    --primary-color: #4a6bff;
    --primary-dark: #3a56cc;
    --secondary-color: #f5f7ff;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --black: #000000;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* Layout */
.login-container {
    display: flex;
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.login-hero {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-hero img {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.hero-text {
    color: var(--white);
    text-align: center;
    max-width: 500px;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1.5rem;
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.logo-container p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--text-lighter);
    font-size: 1rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: var(--error-color);
    width: 25%;
}

.password-strength.medium {
    background-color: var(--warning-color);
    width: 50%;
}

.password-strength.strong {
    background-color: var(--success-color);
    width: 75%;
}

.password-strength.very-strong {
    background-color: var(--success-color);
    width: 100%;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input {
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.btn-login {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 2rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-login p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-btn.google {
    background-color: #db4437;
}

.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn.apple {
    background-color: var(--black);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Register Link */
.register-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.register-link a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert-message {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.alert-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-message.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 107, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

