.main {
    margin-top: 30px;
}
.auth-main {
    padding: 40px 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
}
.form-login {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: auto;
    max-width: 500px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgb(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: var(--color-main);
    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: #dc3545;
}
input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    height: 48px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgb(255 107 53 / 0.1);
}
input[type="email"]:hover,
input[type="text"]:hover,
input[type="password"]:hover {
    border-color: #d1d5db;
}
.input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}
.input-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgb(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 rgb(40 167 69 / 0.1) !important;
}
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.error-message::before {
    content: "⚠";
    font-size: 12px;
}
.error-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.error-list li {
    color: #dc3545;
    font-size: 13px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.error-list li::before {
    content: "•";
    color: #dc3545;
    font-weight: 700;
}
.success-message {
    color: #28a745;
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.success-message::before {
    content: "✓";
    font-size: 12px;
}
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #fff0;
}
.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;
    font-weight: 600;
    margin: 20px 0 10px 0;
}
.text-2 p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.text-2 a {
    color: var(--color-main);
    text-decoration: none;
    font-weight: 600;
    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;
    border-radius: 8px;
    background: linear-gradient(to bottom, #0148b9, #002981);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.button-login:hover {
    background: linear-gradient(to top, #0148b9, #002981);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgb(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 #fff;
    border-top: 2px solid #fff0;
    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;
}
.fb-gg .line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 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: #fff;
    line-height: 1;
    height: auto;
}
.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;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #fff0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: calc(50% - 8px);
    justify-content: center;
}
.fb-button {
    background-color: #1877f2;
    color: #fff;
}
.fb-button:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgb(24 119 242 / 0.3);
}
.google-button {
    background-color: #db4437;
    color: #fff;
}
.google-button:hover {
    background-color: #c23321;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgb(219 68 55 / 0.3);
}
.google-icon {
    width: 18px;
    height: 18px;
}
.divider {
    color: #ccc;
    font-weight: 300;
    text-align: center;
    margin: 20px 0;
}
@media (max-width: 768px) {
    .auth-main {
        padding: 20px 0;
    }
    .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%;
    }
}
@media (max-width: 480px) {
    .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;
    }
}
.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;
}
