@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    --color-one : #6b573c;
    --color-two: #745e41;
    --color-three: #fafaf1;
    --color-four: #ffeba8;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: "Montserrat", sans-serif;
}

.wrapper {
    width: 60%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('../assets/banner-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.635);
    z-index: 1;
}

.wrapper > * {
    position: relative;
    z-index: 2;
}

.auth-container {
    width: 95%;
    margin: 0 auto;
    color: white;
}

.auth-container .logo-translator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.translator {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    padding: 6px;
    font-size: 14px;
    background: rgba(77, 77, 77, 0.302);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0px 20px 15px rgba(0, 0, 0, 0.457);
    z-index: 10;
}

.logo-translator .logo {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fddba8;
}

.form-container {
    width: 100%;
    margin: 20px 0;
}

.tabs-wrapper {
    width: 100%;
    max-height: unset;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 15px;
    box-shadow: 0 0 30px rgba(168, 239, 255, 0.06);
}

.tabs {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    gap: 10px;
}

.tab-button {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tab-button:hover {
    color: #fddba8;
    border-bottom: 1px solid #fddba8;
}

.tab-button.active {
    color: #fddba8;
    border-bottom: 1px solid #fddba8;
}

.tab-panel {
    display: none;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.tab-panel.active {
    display: block;
}

.tab-panel form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    width: 100%;
    position: relative;
}

.form-input input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 15px;
    border: none;
    outline: none;
    background: #5c4f3f;
    color: white;
}

.form-input i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 20px;
    color: white;
    cursor: pointer;
}

form-input::placeholder {
    color: whitesmoke;
}

.agreement-terms {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.agreement-terms p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.agreement-terms span {
    color: #fddba8;
}

[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    background-color: #fccaa9;
    cursor: pointer;
    margin: 0;
}

[type="checkbox"]:checked {
    background-color: #fccaa9;
    border-color: #fccaa9;
}

[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 14px;
    color: white;
}

.button {
    width: 100%;
}

.button button {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #fccaa9, #f4e5a3);
    color: #ad6334;
    font-weight: 400;
}

.have-account {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin: 10px 0;
}

.have-account span {
    font-size: 14px;
    font-weight: 500;
}

.have-account span a {
    text-decoration: none;
    color: #fccaa9;
}

#homepage {
    text-decoration: underline;
}

.phone-input {
    width: 100%;
}

.phone-wrapper {
    display: flex;
    align-items: center;
    background: #5c4f3f;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
}

.phone-wrapper select,
.phone-wrapper input {
    border: none;
    outline: none;
    font-size: 15px;
    padding: 10px 15px;
    background: transparent;
    color: white;
}

.phone-wrapper select {
    width: 100px;
    appearance: none;
    background-color: #5c4f3f;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.phone-wrapper input {
    flex: 1;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
  padding: 12px 20px;
  color: #fff;
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 14px;
  animation: fadein 0.3s, fadeout 0.3s 2.7s;
  min-width: 200px;
  max-width: 300px;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeout {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .wrapper {
        width: 100%;
    }

    .translator {
        top: 10%;
    }

    .tab-button {
        font-size: 14px;
    }
}