/* public/CSS/custom.css */

/* Animations for the falling/rising form elements */
@keyframes fall-down {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes rise-up {
    0% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
    100% { transform: translateY(0) rotate(0); opacity: 1; }
}

.form-content.falling > * {
    animation-name: fall-down;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
}

.form-content.falling .input-group:nth-child(1) { animation-delay: 0s; }
.form-content.falling .input-group:nth-child(2) { animation-delay: 0.1s; }
.form-content.falling .btn-login { animation-delay: 0.2s; }
.form-content.falling .btn-reset { animation-delay: 0.2s; }
.form-content.falling .button-group { animation-delay: 0.2s; }
.form-content.falling .req-list { animation-delay: 0.3s; }
.form-content.falling #forgot-password-link { animation-delay: 0.4s; }
.form-content.falling #back-to-login { animation-delay: 0.4s; }
.form-content.falling p { animation-delay: 0.5s; }


.form-content.rising > * {
    animation-name: rise-up;
    animation-duration: 1s;
    animation-fill-mode: backwards;
    animation-timing-function: ease-out;
}

/* Footer Styles */
.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    cursor: pointer;
}

.footer-divider {
    border-top: 1px dashed var(--border-color);
    margin: 1rem 0;
}

#footer-text {
    font-size: 0.9rem;
    color: #999;
    transition: color 0.3s ease;
}

#footer-text:hover {
    color: var(--secondary-color);
}

/* Team Modal Styles */
.team-modal {
    background-color: transparent;
    backdrop-filter: blur(10px);
}

.team-modal .modal-content {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    max-width: 500px;
    height: 400px; /* Set a fixed height to control the space for orbits */
    overflow: hidden; /* This prevents scrollbars from appearing */
    position: relative;
}

.team-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
}

.planet-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem; /* Center the planet vertically */
}

.planet-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s infinite ease-in-out;
    opacity: 0.5;
}

.planet-icon {
    font-size: 5rem;
    color: var(--text-color);
    z-index: 10;
    animation: rotate-planet 15s linear infinite;
}

.team-list {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
}

.team-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    animation: fadeIn 1s ease-in-out;
    position: relative;
    z-index: 20;
}

.member-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-item {
    position: absolute;
    font-size: 1.1rem;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0;
}

/* Hesham Habib special glow */
.member-3 {
    font-weight: bold;
    color: var(--secondary-color);
    animation: glowing 2s infinite ease-in-out;
}

/* Animations for orbiting */
@keyframes orbit-1 {
    0% { transform: rotate(0deg) translateX(120px) rotate(-0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); opacity: 1; }
}

@keyframes orbit-2 {
    0% { transform: rotate(120deg) translateX(140px) rotate(-120deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: rotate(480deg) translateX(140px) rotate(-480deg); opacity: 1; }
}

@keyframes orbit-3 {
    0% { transform: rotate(240deg) translateX(160px) rotate(-240deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: rotate(600deg) translateX(160px) rotate(-600deg); opacity: 1; }
}

.member-1 { animation: orbit-1 10s linear infinite; animation-delay: 0.5s; }
.member-2 { animation: orbit-2 12s linear infinite; animation-delay: 0.7s; }
.member-3 { animation: orbit-3 15s linear infinite; animation-delay: 0.9s; }


/* Other animations */
@keyframes glow-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes rotate-planet {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glowing {
    0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.8); }
    100% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}