/* Breyer Marketplace - Premium Admin Login Design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #667eea 50%, 
        #764ba2 75%, 
        #667eea 100%);
    background-size: 400% 400%;
    animation: gradientWave 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Elements Background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 3px, transparent 3px),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 75px 75px;
    animation: floatPattern 20s linear infinite;
    pointer-events: none;
}

@keyframes floatPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Beautiful Language Switcher */
.language-switcher {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: floatSwitcher 6s ease-in-out infinite;
}

@keyframes floatSwitcher {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.language-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 20px;
    margin: 0 3px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFE45C, #FF6B6B);
    border-radius: 50px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.language-btn:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.language-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.language-btn.active {
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.language-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Premium Container Design */
.container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 40px 35px; /* Reduced from 50px 45px */
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    text-align: center;
    max-width: 150px !important; /* Force smaller */
    width: 30% !important; /* Force smaller width */
    position: relative;
    animation: slideInUp 1s ease-out;
    transform: scale(0.8); /* Force 80% smaller */
}

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

/* Logo Enhancement */
.container img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.container img:hover {
    transform: scale(1.05);
}

/* Beautiful Heading */
.form h2 {
    color: white;
    font-size: 2rem; /* Reduced from 2.2rem */
    font-weight: 700;
    margin-bottom: 30px; /* Reduced from 35px */
    text-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { 
        text-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(255, 255, 255, 0.2);
    }
    100% { 
        text-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(255, 255, 255, 0.4);
    }
}

/* Input Group Styling */
.input-group {
    margin-bottom: 20px; /* Reduced from 25px */
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px 20px; /* Reduced from 18px 25px */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 228, 92, 0.8);
    box-shadow: 
        0 0 0 4px rgba(255, 228, 92, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Switch Link Styling */
.switch {
    margin: 25px 0;
}

.switch a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.switch a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Premium Button Design */
.button {
    width: 100%;
    padding: 16px; /* Reduced from 18px */
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 50%, 
        #667eea 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.05rem; /* Reduced from 1.1rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.button:hover {
    background-position: 100% 0;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(-1px) scale(1.01);
}

/* Error Message Styling */
.error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    display: none;
    animation: errorSlide 0.5s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher {
        top: 20px;
        right: 20px;
        padding: 6px;
    }
    
    .language-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 35px 25px;
        margin: 20px;
        border-radius: 20px;
        max-width: 320px;
        width: 85%;
    }
    
    .form h2 {
        font-size: 1.8rem;
    }
    
    .input-group input {
        padding: 16px 20px;
    }
    
    .button {
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        max-width: 300px;
        width: 90%;
    }
    
    .form h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
}

/* Additional Premium Effects */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    pointer-events: none;
}

/* Hover effect for entire container */
.container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Loading animation for form submission */
.button.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #ccc, #aaa);
}

.button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s ease infinite;
}

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