/* static/css/style.css */

/* Beautiful Animated Gradient Background */
.colorful-background {
    background: linear-gradient(-45deg, 
        #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, 
        #ffeaa7, #dda0dd, #98d8c8, #f7dc6f,
        #bb8fce, #85c1e9, #f8c471, #82e0aa);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

/* Floating Color Orbs for Extra Beauty */
.color-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.orb:nth-child(1) {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ff6b6b, #ff8e8e);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #4ecdc4, #7ed6cc);
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.orb:nth-child(3) {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #45b7d1, #6bc5d8);
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

.orb:nth-child(4) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffeaa7, #ffefba);
    top: 10%;
    left: 70%;
    animation-delay: -15s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* General rule */
img {
    max-width: 100%;
    height: auto;
}

/* Keep profile and circle images neat */
.rounded-circle,
.img-thumbnail,
.card-img-top {
    object-fit: cover;
}

/* Leadership/Executive Members */
.executive-members img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Birthday Celebrants */
.birthday-celebrants img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Event images */
.event-card img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
}

/* Modal images (zoomed) */
#modalImage {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    cursor: grab;
}

/* Password Toggle Styles */
.password-toggle-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 18px;
    z-index: 10;
    padding: 8px;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    outline: none;
}

.password-toggle-icon:hover {
    color: #495057;
}

.password-toggle-icon:focus {
    color: #007bff;
    outline: none;
}

.password-toggle-container input[type="password"],
.password-toggle-container input[type="text"] {
    padding-right: 50px !important;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.password-toggle-container input[type="password"]:focus,
.password-toggle-container input[type="text"]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.fas.fa-eye,
.fas.fa-eye-slash {
    font-size: 18px;
}

/* Ensure proper spacing for password fields */
.form-group .password-toggle-container {
    margin-bottom: 0;
}

/* Social Buttons */
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.btn-facebook {
    color: #fff !important;
    background: linear-gradient(135deg, #1877F2 0%, #3b82f6 100%);
    border: none;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #166bd8 0%, #2563eb 100%);
}

.btn-tiktok {
    color: #fff !important;
    background: linear-gradient(135deg, #000 0%, #111 100%);
    border: 1px solid #222;
}

.btn-tiktok:hover {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.social-separator {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
}

.social-separator::before,
.social-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.social-separator::before { left: 0; }
.social-separator::after { right: 0; }

/* Login Hero Section */
.login-hero {
    text-align: center;
    color: #fff;
    padding: 40px 20px 10px 20px;
}

.login-hero h1 {
    font-size: 2rem;
    font-weight: 800;
}

.login-hero p {
    font-size: 1rem;
    opacity: 0.95;
}

/* Inline SVG icon baseline alignment */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* Target current template buttons when custom classes are not present */
a.btn.btn-outline-primary[href*="/accounts/facebook/login"] {
    color: #fff !important;
    background: linear-gradient(135deg, #1877F2 0%, #3b82f6 100%);
    border: none;
}

a.btn.btn-outline-primary[href*="/accounts/facebook/login"]:hover {
    background: linear-gradient(135deg, #166bd8 0%, #2563eb 100%);
}

a.btn.btn-outline-dark[href*="/accounts/tiktok/login"] {
    color: #fff !important;
    background: linear-gradient(135deg, #000 0%, #111 100%);
    border-color: #222;
}

a.btn.btn-outline-dark[href*="/accounts/tiktok/login"]:hover {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}
