
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}
a{
    text-decoration: none;
}

body {
    min-height: 100vh;   
    justify-content: center;
    align-items: center;
}

.container {
    position: relative;
    width: 800px;
    height: 500px;
    margin: 50px auto;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: 1s;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.register {
    transform: rotateY(180deg);
}

.container.active .login {
    transform: rotateY(-180deg);
}

.container.active .register {
    transform: rotateY(0deg);
}

.form {
    padding: 40px;
    width: 100%;
}

.title {
    color: #000000;
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #003a8c, #ecda48);
}

.title2::after {
    content: '';
    position: absolute;
    left: 665px;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #003a8c, #ecda48);
}

.form-group {
    margin: 20px 0;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgb(110 110 110 / 10%);
    border: none;
    outline: none;
    color: #000000;
    font-size: 1em;
    border-radius: 8px;
    transition: 0.3s;
}

.form-input:focus {
    background: rgb(0 0 0 / 15%);
}

.form-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(0 0 0 / 60%);
    pointer-events: none;
    transition: 0.3s;
}

.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label {
    top: -5px;
    left: 10px;
    font-size: 0.8em;
    color: #000000;
}

.toggle-form {
    color: #000000;
    text-align: center;
    margin-top: 25px;
}

.toggle-form a {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #003a8c;
    border: none;
    border-radius: 5px;
    color: #f8f8f8;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #003a8c;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.social-icon:hover {
    background: #4f46e5;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }
}
