* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    color: #333;
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 28pt;
    margin: 20px 0;
    color: #2c3e50;
    text-align: center;
}

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    display: block;
    line-height: 1;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.logo img:hover {
    transform: scale(1.02);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-list li a i {
    font-size: 16px;
}

.nav-list li a:hover {
    background-color: #ffd966;
    color: #2c3e50;
    transform: translateY(-2px);
}

.nav-list li a.active {
    background-color: #f39c12;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.regist-container {
    width: 100%;
    max-width: 400px;
    background-color: #eee9c1;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.regist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: black;
}

.form-group input {
    padding: 14px 18px;
    border: 2px solid #575757;
    border-radius: 40px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    background-color: #ffffff;
}


.regist-btn {
    background-color: #ffd966;
    color: black;
    border: none;
    padding: 14px 18px;
    border-radius: 35px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.regist-link {
    text-align: center;
    margin-top: 25px;
    font-size: 18px;
    color: #555;
}

.regist-link a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.error-general {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 30px;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.input-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    display: block;
}

.site-footer {
    background-color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Open Sans', sans-serif;
}

.footer-cont {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-con {
    text-align: left;
}

.footer-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
    color: black;
    font-size: 15px;
    line-height: 1.6;
}

.footer-list a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #f39c12;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #777;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-list {
        justify-content: center;
    }

    .nav-list li a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {

    .login-container,
    .regist-container {
        max-width: 90%;
        padding: 25px 20px;
    }

    h1 {
        font-size: 24pt;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .login-btn,
    .regist-btn {
        font-size: 18px;
        padding: 12px;
    }

    .input-hint {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .login-container, .regist-container {
        padding: 20px 15px;
    }
    .login-btn, .regist-btn {
        font-size: 16px;
        padding: 10px;
    }
    .input-hint {
        font-size: 10px;
    }
}