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

body {
    background: #fff;
    margin: 0;
    padding: 0;
    height: 100vh;
}

.auth-main {
    display: flex;
    height: 100vh;
}

.auth-main .left-panel {
    background: linear-gradient(to bottom right, #1f2e4e, #2c3e60);
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
}

.auth-main .left-panel .gt {
    width: 250px;
}

.auth-main .left-panel .gt_name {
    width: 300px;
}

.auth-main .left-panel p {
    font-size: 1.1rem;
    text-align: center;
}

.auth-main .form-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-main .form-box {
    position: absolute;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    transition: all 0.6s ease;
    z-index: 1;
}

.auth-main.sign-in-mode .sign-in-form {
    display: block;
    z-index: 2;
}

.auth-main.sign-in-mode .sign-up-form {
    display: none;
}

.auth-main:not(.sign-in-mode) .sign-up-form {
    display: block;
    z-index: 2;
}

.auth-main:not(.sign-in-mode) .sign-in-form {
    display: none;
}

.auth-main .form-box h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
    position: relative;
}

.auth-main .form-box h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #F4B400 0%, #ff8f1f 50%, #ff682e 100%);
    border-radius: 2px;
}

.auth-main .form-box label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-main .form-box input[type="text"],
.auth-main .form-box input[type="tel"],
.auth-main .form-box input[type="email"],
.auth-main .form-box input[type="password"] {
    padding: 9px 12px;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auth-main .form-box input:focus {
    outline: none;
    border-bottom: 2px solid #F4B400;
    box-shadow: 0 4px 6px -6px #F4B400;
}

.auth-main .form-box .input-group:focus-within .input-group-text {
    border-bottom: 2px solid #F4B400;
    box-shadow: 0 4px 6px -6px #F4B400;
}

.auth-main .form-box .input-group-text {
    border: none;
    background: transparent;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
}

.auth-main .form-box .input-group-text i {
    color: #999;
}

.auth-main .form-box .terms {
    display: flex;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.auth-main .form-box .terms input:focus-within {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 5px #0d6efd;
    border-radius: 5px;
    padding: 8px;
    transition: all 0.3s ease;
}

.auth-main .form-box .terms input {
    vertical-align: middle;
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.auth-main .form-box .terms p {
    font-size: 14px;
    color: #333;
    text-decoration: none !important;
    font-weight: 600;
}

.auth-main .form-box button {
    background: linear-gradient(135deg, #F4B400 0%, #ff8f1f 50%, #ff682e 100%);
    color: white;
    box-shadow: 0 4px 15px #ff8f1f;
    border: none;
    width: 25%;
    height: 41px;
    border-radius: 22px;
}

.auth-main .form-box button:hover {
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px #ff682e;
}

.auth-main .form-box .toggle-btn {
    color: #F4B400;
    cursor: pointer;
}

/* Slide animations */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.slide-in-right {
  animation: slideInFromRight 0.6s forwards;
}

.slide-out-left {
  animation: slideOutToLeft 0.6s forwards;
}

.slide-in-left {
  animation: slideInFromLeft 0.6s forwards;
}

.slide-out-right {
  animation: slideOutToRight 0.6s forwards;
}


@media (max-width: 991px) {
    .auth-main .form-box {
        top: 0;
    }
}

@media (max-width: 768px) {
    .auth-main {
        flex-direction: column;
        height: 0;
    }

    .auth-main .left-panel {
        border-radius: 0 0 50px 50px;
    }
}

@media (max-width: 500px) {
    .auth-main .left-panel .gt {
        width: 180px;
    }

    .auth-main .left-panel .gt_name {
        width: 230px;
    }

    .auth-main .left-panel p {
        font-size: 12px;
        text-align: center;
    }

    .auth-main .form-box .terms p {
        font-size: 11px;
    }

    .auth-main .form-box p {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .auth-main .form-box h3 {
        font-size: 22px;
    }

    .auth-main .form-box h3::after {
        width: 65px;
    }
}