/* Premium Header Account Styling */
.site-header-account {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.site-header-account > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.site-header-account > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.site-header-account > a::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: left 0.5s;
}

.site-header-account > a:hover::before {
    left: 100%;
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.site-header-account > a:hover .account-avatar {
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.account-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    opacity: 0.9;
}

.account-content {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 220px;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}

.site-header-account:hover .account-dropdown,
.account-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.account-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid #667eea;
    object-fit: cover;
    display: block;
}

.dropdown-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.dropdown-email {
    font-size: 12px;
    color: #666;
    opacity: 0.8;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.dropdown-menu li {
    margin: 0;
}

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

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 25px;
}

.dropdown-menu i {
    width: 18px;
    margin-right: 12px;
    text-align: center;
    opacity: 0.7;
}

.dropdown-menu a:hover i {
    opacity: 1;
    color: #667eea;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 8px 0;
}

.logout-link {
    color: #dc3545 !important;
}

.logout-link:hover {
    background: #fff5f5 !important;
    color: #dc3545 !important;
}

/* Login Form Styling */
.login-form-container {
    padding: 25px;
}

.login-form-head {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.login-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.register-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #764ba2;
}

.diteck-login-form-ajax p {
    margin-bottom: 15px;
}

.diteck-login-form-ajax label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.diteck-login-form-ajax input[type="text"],
.diteck-login-form-ajax input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.diteck-login-form-ajax input[type="text"]:focus,
.diteck-login-form-ajax input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.diteck-login-form-ajax button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.diteck-login-form-ajax button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-form-bottom {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.lostpass-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.lostpass-link:hover {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header-account {
        margin-left: 10px;
    }
    
    .site-header-account > a {
        padding: 6px 10px;
    }
    
    .account-avatar {
        width: 28px;
        height: 28px;
    }
    
    .account-content {
        font-size: 13px;
    }
    
    .account-dropdown {
        min-width: 200px;
        right: -10px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-dropdown.show {
    animation: fadeInUp 0.3s ease;
}

/* Loading state */
.account-loading {
    opacity: 0.6;
    pointer-events: none;
}

.account-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}