*,
*:before,
*:after{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    background-color: #080710;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}
.background{
    width: 430px;
    height: 520px;
    position: fixed;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    z-index: -1;
}
.background .shape{
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
}
.shape:first-child{
    background: linear-gradient(
        #1845ad,
        #23a2f6
    );
    left: -80px;
    top: -80px;
}
.shape:last-child{
    background: linear-gradient(
        to right,
        #ff512f,
        #f09819
    );
    right: -30px;
    bottom: -80px;
}
.form-container {
    position: relative;
    width: 400px;
    height: auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
form{
    width: 400px;
    background-color: rgba(255,255,255,0.13);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px rgba(8,7,16,0.6);
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}
form *{
    color: #ffffff;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}
form h3{
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
    margin-bottom: 15px;
}

label{
    display: block;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}
input{
    display: block;
    height: 50px;
    width: 100%;
    background-color: rgba(255,255,255,0.07);
    border-radius: 3px;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 300;
}
::placeholder{
    color: #e5e5e5;
}
button{
    margin-top: 25px;
    width: 100%;
    background-color: #ffffff;
    color: #080710;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}
.social{
  margin-top: 30px;
  display: flex;
}
.social div{
  background: red;
  width: 150px;
  border-radius: 3px;
  padding: 5px 10px 10px 5px;
  background-color: rgba(255,255,255,0.27);
  color: #eaf0fb;
  text-align: center;
}
.social div:hover{
  background-color: rgba(255,255,255,0.47);
}
.social .fb{
  margin-left: 25px;
}
.social i{
  margin-right: 4px;
}
.form-toggle {
    margin-top: 15px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #e5e5e5;
    transition: color 0.3s ease;
}
.form-toggle:hover {
    color: #ffffff;
    text-decoration: underline;
}
#login-form {
    display: flex;
    opacity: 1;
    visibility: visible;
}
#signup-form {
    display: none;
    opacity: 0;
    visibility: hidden;
}
#login-form.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -60%);
}
#signup-form.fade-in {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}
.notification.show {
    transform: translateX(0);
    opacity: 1;
}
.notification.success {
    background-color: #4CAF50;
}
.notification.error {
    background-color: #f44336;
}
.notification i {
    font-size: 20px;
}
.forgot-password {
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: #e5e5e5;
    cursor: pointer;
}
.forgot-password:hover {
    color: #ffffff;
    text-decoration: underline;
}
.password-container {
    position: relative;
    width: 100%;
}
.password-container input {
    width: 100%;
    padding-right: 40px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.2em;
}
.toggle-password:hover {
    color: #333;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .form-container {
        width: 90%;
        max-width: 400px;
        padding: 20px;
        margin: 20px auto;
    }

    .form-container h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .form-container input {
        padding: 12px 15px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        margin-bottom: 15px;
    }

    .form-container button {
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 10px;
    }

    .form-container p {
        font-size: 14px;
        margin-top: 15px;
    }

    .form-container a {
        font-size: 14px;
    }

    .forgot-password {
        font-size: 14px;
        margin-top: 10px;
    }

    /* Improve touch targets */
    .toggle-password {
        padding: 10px;
        font-size: 1.4em;
    }

    /* Add safe area insets for modern mobile browsers */
    body {
        padding-bottom: env(safe-area-inset-bottom, 0);
        padding-top: env(safe-area-inset-top, 0);
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .form-container {
        width: 95%;
        padding: 15px;
    }

    .form-container h2 {
        font-size: 1.3em;
    }

    .form-container input {
        padding: 10px 12px;
    }

    .form-container button {
        padding: 10px 15px;
    }
}

