* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

nav {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    background-color: #ff0000;
    color: white;
    padding: 10px 20px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 5px;
    text-decoration: none;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 155px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff0000;
}

nav .btn {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 7px;
    padding: 12px 22px;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

nav .btn:hover {
    background-color: #fffb00;
    color: rgb(0, 0, 0);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 50%;
    left: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #333;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #ff0000;
    padding-left: 25px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.drop-down-second {
    position: relative;
}

.drop-down-menu-second {
    position: absolute;
    top: 50%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.drop-down-menu-second li {
    padding: 0;
}

.drop-down-menu-second a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #333;
    transition: all 0.3s;
}

.drop-down-menu-second a:hover {
    background-color: #f5f5f5;
    color: #ff0000;
    padding-left: 25px;
}

.drop-down-second:hover .drop-down-menu-second {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.forms-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    max-width: 1400px;
    margin: 70px auto;
    padding: 0 40px;
    flex-wrap: wrap;
}

.login-container {
    width: 450px;
}

.login-box {
    background-color: white;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 40px 35px;
    position: relative;
}

.login-title {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 400;
}

.form-group input[type='text'],
.form-group input[type='password'] {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input[type='text']:focus,
.form-group input[type='password']:focus {
    outline: none;
    border-color: #d32f2f;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-group input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #d32f2f;
}

.checkbox-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.login-btn {
    width: 100%;
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}

.login-btn:hover {
    background-color: #b71c1c;
}

.login-btn:active {
    transform: scale(0.98);
}

.register-container {
    width: 550px;
}

.register-box {
    background-color: white;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 40px 35px;
    position: relative;
}

.register-title {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.register-form-group {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 15px;
}

.register-form-group label {
    font-size: 15px;
    color: #555;
    font-weight: 400;
    text-align: left;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='number'],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
    color: #333;
}

.form-group input::placeholder,
.form-group select {
    color: #bbb;
    font-style: italic;
}

.register-form-group input::placeholder,
.register-form-group select {
    color: #bbb;
    font-style: italic;
}

.register-form-group input:focus,
.register-form-group select:focus {
    outline: none;
    border-color: #d32f2f;
}

.register-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.register-form-group input[readonly] {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 25px 0;
    grid-column: 1 / -1;
}

.required-text {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
    font-style: italic;
}

.register-btn {
    width: 100%;
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}

.register-btn:hover {
    background-color: #b71c1c;
}

.register-btn:active {
    transform: scale(0.98);
}

.footer {
    background: #2a2a2a;
    padding: 15px 0;
    text-align: center;
}

.footer-info {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
    font-size: 20px;
}

.footer-info p {
    margin: 25px 0;
}

.footer-info .info {
    font-size: 16px;
    color: #ffffff;
    margin-top: 25px;
}

@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 80px;
    }

    .logo {
        font-size: 24px;
        padding: 8px 16px;
        letter-spacing: 3px;
    }

    .nav-links a {
        font-size: 16px;
    }

    nav .btn {
        padding: 10px 18px;
        font-size: 18px;
    }

    .forms-container {
        gap: 40px;
        padding: 0 30px;
        margin: 50px auto;
    }

    .login-container,
    .register-container {
        width: 100%;
        max-width: 500px;
    }

    .login-box,
    .register-box {
        padding: 35px 30px;
    }

    .login-title,
    .register-title {
        font-size: 22px;
        top: -16px;
    }

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

    .footer-info {
        font-size: 18px;
        padding: 15px;
    }
}

@media screen and (max-width: 767px) {
    .nav-container {
        padding: 0 15px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
        padding: 8px 14px;
        letter-spacing: 2px;
        margin-top: 5px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 16px;
        display: block;
        padding: 12px 0;
    }

    nav .btn {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        font-size: 18px;
    }

    .dropdown-menu,
    .drop-down-menu-second {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: #f8f8f8;
        margin-top: 5px;
        border-radius: 5px;
        padding: 5px 0;
        min-width: auto;
    }

    .dropdown:hover .dropdown-menu,
    .drop-down-second:hover .drop-down-menu-second {
        display: block;
    }

    .dropdown-menu a,
    .drop-down-menu-second a {
        padding: 10px 15px;
        font-size: 15px;
    }

    .dropdown-menu a:hover,
    .drop-down-menu-second a:hover {
        padding-left: 20px;
    }

    main {
        padding: 20px 15px;
    }

    .forms-container {
        flex-direction: column;
        gap: 30px;
        padding: 0;
        margin: 30px auto;
        width: 100%;
    }

    .login-container,
    .register-container {
        width: 100%;
    }

    .login-box,
    .register-box {
        padding: 30px 25px;
        border-width: 1px;
        border-radius: 15px;
    }

    .login-title,
    .register-title {
        font-size: 20px;
        top: -15px;
        padding: 0 15px;
    }

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

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input[type='text'],
    .form-group input[type='email'],
    .form-group input[type='password'],
    .form-group input[type='number'],
    .form-group select {
        padding: 10px 12px;
        font-size: 15px;
    }

    .checkbox-group {
        margin-bottom: 25px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .login-btn,
    .register-btn {
        padding: 12px;
        font-size: 15px;
    }

    .divider {
        margin: 20px 0;
    }

    .register-form-group {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }

    .register-form-group label {
        text-align: left;
        font-size: 14px;
    }

    .required-text {
        font-size: 12px;
        margin-top: 8px;
        margin-bottom: 15px;
        text-align: center;
    }

    .register-container {
        order: -1;
    }

    .form-group select {
        padding-right: 40px;
        background-position: right 10px center;
    }

    .footer {
        padding: 10px 0;
        margin-top: 30px;
    }

    .footer-info {
        font-size: 16px;
        padding: 15px 10px;
    }

    .footer-info p {
        margin: 15px 0;
    }

    .footer-info .info {
        font-size: 14px;
        margin-top: 15px;
    }
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: none;
}

.burger-btn:hover {
    background-color: transparent;
    transform: none;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

@media screen and (max-width: 767px) {
    .burger-btn {
        display: flex;
        position: absolute;
        right: 30px;
        top: 26%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 20px;
    }

    .nav-links a {
        padding: 15px 0;
        text-align: left;
        font-size: 18px;
    }

    .dropdown-menu,
    .drop-down-menu-second {
        position: static;
        display: none;
        background-color: #f9f9f9;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu,
    .drop-down-second:hover .drop-down-menu-second {
        display: none;
    }

    .dropdown.active .dropdown-menu,
    .drop-down-second.active .drop-down-menu-second {
        display: block;
    }

    .dropdown-menu a,
    .drop-down-menu-second a {
        padding: 12px 20px;
        font-size: 16px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu a:last-child,
    .drop-down-menu-second a:last-child {
        border-bottom: none;
    }

    .dropdown > a,
    .drop-down-second > a {
        position: relative;
        padding-right: 30px;
    }

    .dropdown > a::after,
    .drop-down-second > a::after {
        content: '›';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 20px;
        transition: transform 0.3s;
    }

    .dropdown.active > a::after,
    .drop-down-second.active > a::after {
        transform: translateY(-50%) rotate(-90deg);
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 10px;
        padding: 15px;
        text-align: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-container {
        position: relative;
    }

    .logo {
        margin: 0px 180px 0px 0;
        font-size: 20px;
        padding: 8px 15px;
        letter-spacing: 2px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .burger-btn {
        display: none;
    }
}
