/* Login Page Styling - Kaymos Range Wishlist */

:root {
    --primary-gradient: linear-gradient(135deg, #EE3733 0%, #ff7b78 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #333;
    --text-light: #666;
    --bg-dark: #121212;
}

.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    filter: blur(80px);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    opacity: 0.4;
}

.login-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: #4285f4;
    filter: blur(80px);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    opacity: 0.3;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #EE3733;
    box-shadow: 0 0 0 4px rgba(238, 55, 51, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(238, 55, 51, 0.3);
}

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

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #999;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #444;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.google-btn:hover {
    background: #f1f1f1;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.switch-form {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.switch-form a {
    color: #EE3733;
    font-weight: 600;
    text-decoration: none;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Response Message */
.auth-msg {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.auth-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.auth-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* User Dropdown & Initials Styles */
.user-dropdown-container {
    position: relative;
    padding-bottom: 5px;
}

.user-initials-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #EE3733 0%, #b32a27 100%);
    color: white !important;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(238, 55, 51, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-initials-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 55, 51, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    list-style: none;
    margin: 10px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 2.65, 1.55);
    z-index: 1000;
}

.user-dropdown-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu li {
    padding: 0;
    margin: 0;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-dropdown-menu a i {
    margin-right: 12px;
    width: 16px;
    color: #EE3733;
    font-size: 16px;
}

.user-dropdown-menu a:hover {
    background: rgba(238, 55, 51, 0.05);
    color: #EE3733 !important;
    padding-left: 25px;
}

.user-dropdown-menu .divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 8px 0;
    padding: 0;
    display: block;
}

.mobile-initials {
    width: 35px;
    height: 35px;
    font-size: 12px;
}

@media (max-width: 991px) {
    .user-dropdown-menu {
        right: -50px;
    }
}
