@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #000;
    background: radial-gradient(circle, #1a1a1a, #0d0d0d 40%, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.stars, .shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.star {
    position: fixed;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 1.5s infinite ease-in-out;
    z-index: -1;
}
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    animation: shoot 2s infinite ease-in-out;
    z-index: -1;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
@keyframes shoot {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(100px, 100px); opacity: 0; }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-right: 1rem;
}

.logo {
    width: 50px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.container span {
    font-size: 12px;
}

.container a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container button {
    background-color: rgba(255, 150, 160, 1);
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.container button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 120, 130, 1);
}

.container button.hidden {
    background-color: transparent;
    border-color: #fff;
}

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

.social-icons {
    margin: 20px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.social-icons a {
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icons a.google {
    background-image: url('../images/google.png');
}
.social-icons a.linkedin {
    background-image: url('../images/linkedin.png');
}
.social-icons a.github {
    background-image: url('../images/github.png');
}
.social-icons a.facebook {
    background-image: url('../images/facebook.png');
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
}

.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.toggle {
    background: linear-gradient(to right, rgba(255, 80, 90, 1), rgba(255, 150, 160, 1));
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle {
    transform: translateX(50%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.container.active .toggle-right {
    transform: translateX(200%);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

.container {
    transition: box-shadow 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.container:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(18px) brightness(0.5);
    -webkit-backdrop-filter: blur(18px) brightness(0.5);
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(100, 149, 237, 0.2);
    border-top: 3px solid #6495ED;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

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

.loading-text {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    text-shadow: 0 0 12px rgba(13, 110, 253, 0.5);
    animation: fadeText 1.8s ease-in-out infinite;
}

@keyframes fadeText {
    0%, 100% { 
        opacity: 0.7; 
    }
    50% { 
        opacity: 1; 
    }
}

.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.success-popup-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}

.success-popup-content p {
    color: #333;
    font-size: 16px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.popup-ok-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-ok-btn:hover {
    background-color: #45a049;
}