:root {
    --background-color: #f0f2f5;
    --text-color: #333333;
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #7f5af0;
    --dark-background: #ffffff;
    --card-background: #ffffff;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --font-family: 'Poppins', sans-serif;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --hover-transition: all 0.3s ease;
    --border-radius: 16px;
    --glass-background: rgba(255, 255, 255, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --neo-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --neo-inset-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.03), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(78, 205, 196, 0.07) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(126, 90, 240, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.auth-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-card::before {
    display: none;
}

.auth-banner {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.logo-img {
    max-width: 140px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

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

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 45px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    opacity: 0.7;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(240, 242, 245, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.2);
    background-color: white;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    opacity: 0.6;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
}

.password-toggle:hover {
    opacity: 1;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(127, 90, 240, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(127, 90, 240, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-color);
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-link {
    color: var(--accent-color);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.auth-link-black {
    color: black;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.auth-link::after {
    content: '';
    text-decoration: none;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.auth-link:hover::after {
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.divider-text {
    padding: 0 15px;
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    color: var(--accent-color);
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid var(--danger-color);
    padding: 12px 15px;
    margin-bottom: 20px;
    color: var(--danger-color);
    border-radius: 8px;
    font-size: 14px;
    position: relative;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid var(--success-color);
    padding: 12px 15px;
    margin-bottom: 20px;
    color: var(--success-color);
    border-radius: 8px;
    font-size: 14px;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.form-group:focus-within .form-label {
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-group:focus-within .input-icon {
    color: var(--accent-color);
    opacity: 1;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .auth-btn {
        padding: 12px 16px;
    }
    
    .auth-banner {
        height: 100px;
    }
}