:root {
    --color-white: #fff;
}

.form-login {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: auto;
    max-width: 680px;
    min-width: 600px;
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.text-1 {
    text-align: center;
    margin-bottom: 20px;
}

.text-1 h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.text-1 p {
    font-size: 15px;
    color: #666;
    line-height: 1.4;
}

.text-1 a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-1 a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.form-group,
.email,
.password {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.required::after {
    content: " *";
    color: var(--color-orange);
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    height: 48px;
    border: 1px solid transparent;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

input[type="email"]:hover,
input[type="text"]:hover,
input[type="password"]:hover {
    border-color: #d1d5db;
}

.input-error {
    border-color: var(--color-orange) !important;
    background-color: #fff5f5;
}

.input-error:focus {
    border-color: var(--color-orange) 5 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.input-success {
    border-color: #28a745 !important;
    background-color: #f8fff9;
}

.input-success:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.error-message {
    color: var(--color-orange);
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: "⚠";
    font-size: 12px;
}

.error-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-list li {
    color: var(--color-orange);
    font-size: 13px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-list li::before {
    content: "•";
    color: var(--color-orange);
}

.success-message {
    color: #28a745;
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-message::before {
    content: "✓";
    font-size: 12px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background-color: #cce7ff;
    color: #004085;
    border-color: #b8daff;
}

.text-2 {
    font-size: 16px;
    color: #333;
    margin: 20px 0 10px 0;
}

.text-2 p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.text-2 a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-2 a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.button {
    text-align: center;
    margin-top: 20px;
}

.button-login {
    height: 48px;
    width: 100%;
    border: none;
    background: var(--color-orange);
    color: var(--color-white);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.register-main .button-login {
    max-width: 100%;
}

.register-main .form-auth {
    height: auto;
}

.button-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.button-login:active {
    transform: translateY(0);
}

.button-login:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-login:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.button-login.loading {
    background: #ccc;
    cursor: not-allowed;
    position: relative;
}

.button-login.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-white);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.fb-gg {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fb-gg .line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.fb-gg .line span {
    height: 1px;
    background: #e1e5e9;
    flex: 1;
}

.fb-gg .line .text {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    padding: 0 10px;
    background: var(--color-white);
    line-height: 1;
}

.fb-gg p::before {
    left: 0;
}

.fb-gg p::after {
    right: 0;
}

.fb-gg-button {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fb-button,
.google-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 16px;
    font-family: "Roboto";
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: calc(50% - 8px);
    justify-content: center;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

.fb-button {
    color: var(--color-black);
}

.fb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.google-button {
    color: var(--color-black);
}

.google-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(219, 68, 55, 0.3);
}

.google-icon {
    width: 18px;
    height: 18px;
}

.divider {
    color: #ccc;
    font-weight: 300;
    text-align: center;
    margin: 20px 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.password-strength {
    margin-top: 8px;
    display: flex;
    gap: 4px;
}

.password-strength-bar {
    height: 4px;
    flex: 1;
    background-color: #e1e5e9;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.password-strength-bar.weak {
    background-color: #dc3545;
}

.password-strength-bar.medium {
    background-color: #ffc107;
}

.password-strength-bar.strong {
    background-color: #28a745;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.password-strength-text.weak {
    color: #dc3545;
}

.password-strength-text.medium {
    color: #ffc107;
}

.password-strength-text.strong {
    color: #28a745;
}

.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    width: auto;
    height: auto;
    margin: 0;
}

.checkbox-group label,
.radio-group label {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

.validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.validation-summary h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.validation-summary ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* Customize **/
body {
    font-family: "Josefin Sans", sans-serif;
}

.header-auth {
    background: var(--color-white);
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-auth-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-auth__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-auth__menu ul a {
    font-size: 15px;
    text-decoration: none;
    color: var(--color-orange);
}

/** Login **/
.form-auth {
    width: 480px;
    padding: 48px;
    background: var(--color-white);
    box-shadow: 0px 4px 30px rgba(255, 255, 255, 0.4);
}

.form-auth-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 36px;
}

.form-auth-tab li {
    list-style: none;
    flex: 1;
}

.form-auth-tab li a {
    padding: 12px 24px;
    cursor: pointer;
    color: var(--color-orange);
    font-family: "Roboto";
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    text-align: center;
}

.form-auth-tab li.active a {
    border-bottom: 1px solid var(--color-orange);
}

.form-wrapper {
    margin-top: 25px;
}

.form-auth-email label,
.form-auth-password label,
.form-auth-phone-number label,
.form-auth-full-name label {
    font-weight: normal;
    color: var(--color-orange);
    font-family: "Roboto";
}

.form-auth-email {
    margin-bottom: 40px;
}

.auth-main {
    position: relative;
    z-index: 9;
}

.auth-main .button {
    margin-top: 48px;
}

.bg-auth {
    position: absolute;
    left: -70px;
    top: 74px;
    width: 830px;
    height: 732px;
    transform: rotate(12.81deg);
    object-fit: cover;
    z-index: 1;
}

.bg-auth img {
    width: 100%;
    height: 100%;
}

.main-auth {
    background-color: #ff9e56;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 120px);
}

.main-auth .container {
    background: transparent;
}

.form-auth-flex {
    display: flex;
    justify-content: end;
    padding-right: 48px;
    align-items: center;
    margin-top: 48px;
}

.register-main .form-auth-email {
    margin-bottom: 20px;
}

.register-main .button {
    margin-top: 16px !important;
}

@media (max-width: 960px) {
    .form-auth-flex {
        padding-right: 0px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-login {
        max-width: 100%;
        margin: 20px;
        padding: 30px 20px;
    }

    .text-1 h1 {
        font-size: 24px;
    }

    .fb-gg-button {
        flex-direction: column;
        gap: 8px;
    }

    .fb-button,
    .google-button {
        width: 100%;
    }

    .form-auth {
        width: 100%;
        max-width: 480px;
    }

    .form-auth {
        padding: 36px;
    }
}

@media (max-width: 480px) {
    .form-auth-tab li a {
        min-width: auto;
        width: 100%;
        font-size: 18px;
    }

    .form-auth {
        padding: 36px;
    }

    .form-auth-flex {
        margin-top: 0px;
    }

    .form-login {
        margin: 10px;
        padding: 20px 15px;
    }

    .text-1 h1 {
        font-size: 22px;
    }

    input[type="email"],
    input[type="text"],
    input[type="password"] {
        height: 44px;
        padding: 10px 12px;
    }

    .button-login {
        height: 44px;
        font-size: 15px;
    }
}
