/* Members Page - Enhanced Login Container Styles */

.login-container {
    position: relative;
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 30, 0.9));
    border: 2px solid rgba(186, 148, 79, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(186, 148, 79, 0.05),
        0 0 40px rgba(186, 148, 79, 0.1);
    transition: all 0.4s ease;
}

.login-container:hover {
    border-color: rgba(186, 148, 79, 0.5);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 120px rgba(186, 148, 79, 0.08),
        0 0 60px rgba(186, 148, 79, 0.2);
    transform: translateY(-5px);
}

/* Animated Background Graphics */
.login-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ba944f;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(186, 148, 79, 0.8);
    animation: floatStar 8s ease-in-out infinite;
}

.floating-star::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(180deg, transparent, rgba(186, 148, 79, 0.3));
    border-radius: 50% 50% 0 0;
    top: -4px;
    left: -2px;
    animation: twinkle 2s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
    width: 3px;
    height: 3px;
}

.star-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
    width: 5px;
    height: 5px;
}

.star-4 {
    top: 50%;
    right: 10%;
    animation-delay: 4.5s;
}

.star-5 {
    bottom: 15%;
    right: 25%;
    animation-delay: 6s;
    width: 3px;
    height: 3px;
}

@keyframes floatStar {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, -20px) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translate(10px, -40px) scale(1.1);
        opacity: 1;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.5);
    }
}

.cosmic-ring {
    position: absolute;
    border: 2px solid rgba(186, 148, 79, 0.2);
    border-radius: 50%;
    animation: rotateRing 20s linear infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    border-style: dashed;
}

.ring-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    border-style: dotted;
    animation-duration: 15s;
    animation-direction: reverse;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.particle-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(186, 148, 79, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseBurst 4s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes pulseBurst {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Content */
.login-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(186, 148, 79, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: iconPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

.icon-emoji {
    font-size: 4rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(186, 148, 79, 0.6));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #ba944f;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(186, 148, 79, 0.5);
}

.login-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Login Button */
.login-button-wrapper {
    margin: 2.5rem 0;
}

.cosmic-login-button {
    position: relative;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, rgba(186, 148, 79, 0.2), rgba(186, 148, 79, 0.1));
    border: 2px solid rgba(186, 148, 79, 0.5);
    border-radius: 50px;
    color: #ba944f;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(186, 148, 79, 0.2);
    z-index: 1;
}

.cosmic-login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(186, 148, 79, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cosmic-login-button:hover::before {
    left: 100%;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(186, 148, 79, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.cosmic-login-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

.button-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 1;
}

.button-icon {
    font-size: 1.3rem;
    animation: iconSpin 3s linear infinite;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.button-arrow {
    transition: transform 0.3s ease;
}

.cosmic-login-button:hover {
    border-color: rgba(186, 148, 79, 0.8);
    background: linear-gradient(135deg, rgba(186, 148, 79, 0.3), rgba(186, 148, 79, 0.2));
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(186, 148, 79, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.cosmic-login-button:hover .button-arrow {
    transform: translateX(5px);
}

.cosmic-login-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(186, 148, 79, 0.3), transparent);
}

.divider-text {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer Link */
.login-footer {
    font-family: 'Raleway', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 2rem;
}

.register-link {
    position: relative;
    color: #ba944f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ba944f, rgba(186, 148, 79, 0.5));
    transition: width 0.3s ease;
}

.register-link:hover {
    color: #ffd700;
}

.register-link:hover .link-underline {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .cosmic-login-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .icon-emoji {
        font-size: 3rem;
    }
    
    .ring-1, .ring-2 {
        display: none;
    }
}

/* Entrance Animation */
.login-container[data-entrance="fadeIn"] {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

