* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7eef4;
    color: #3f2d38;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 246, 251, 0.92), rgba(246, 222, 236, 0.82));
    pointer-events: none;
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(214, 180, 202, 0.55);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(111, 61, 91, 0.18);
    padding: 34px 34px 28px;
    backdrop-filter: blur(8px);
}

.login-logo {
    text-align: center;
    margin-bottom: 22px;
}

.login-logo img {
    max-width: 190px;
    height: auto;
}

.login-title {
    text-align: center;
    margin-bottom: 28px;
}

.login-title h1 {
    margin: 0;
    color: #2f2330;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.login-title p {
    margin: 8px 0 0;
    color: #8a6c7e;
    font-size: 14px;
    line-height: 1.45;
}

.login-form label {
    display: block;
    margin-bottom: 7px;
    color: #4b3947;
    font-size: 13px;
    font-weight: 700;
}

.login-form .form-control {
    width: 100%;
    height: 46px;
    border: 1px solid #e4cddb;
    border-radius: 14px;
    background: #fff;
    color: #382b34;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form .form-control:focus {
    border-color: #d36ea5;
    box-shadow: 0 0 0 4px rgba(211, 110, 165, 0.16);
    outline: none;
}

.login-field {
    margin-bottom: 16px;
}

.btn-login {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d85f9f, #b94682);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 12px 28px rgba(185, 70, 130, 0.26);
}

.btn-login:hover,
.btn-login:focus {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(185, 70, 130, 0.32);
}

.login-links {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #f0dce8;
    text-align: center;
}

.login-links a {
    display: block;
    margin: 9px 0;
    color: #a83f76;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.login-links a:hover {
    color: #7f2d58;
    text-decoration: underline;
}

.back-link {
    margin-top: 16px !important;
    color: #7c6b75 !important;
    font-size: 13px !important;
}

.login-note {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff5fa;
    color: #8a5974;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 767px) {
    .login-page {
        align-items: flex-start;
        padding-top: 28px;
        background-attachment: scroll;
    }

    .login-card {
        padding: 28px 22px 24px;
        border-radius: 22px;
    }

    .login-logo img {
        max-width: 160px;
    }

    .login-title h1 {
        font-size: 24px;
    }
}

.result-box {
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    font-weight: 700;
}

.result-ok {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.result-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.register-page {
    align-items: flex-start;
    padding-top: 38px;
    padding-bottom: 38px;
}

.register-card {
    max-width: 860px;
}

.register-form {
    margin-top: 8px;
}

.register-section {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #f0dce8;
    border-radius: 20px;
    background: #fffafd;
}

.register-section h2 {
    margin: 0 0 16px;
    color: #3f2d38;
    font-size: 17px;
    font-weight: 800;
}

.register-grid {
    display: grid;
    gap: 16px;
}

.register-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.street-grid {
    grid-template-columns: minmax(0, 1fr) 140px;
}

.register-form .login-field {
    margin-bottom: 0;
}

.register-form .form-control {
    height: 44px;
}

.register-form select.form-control {
    padding: 0 12px;
}

.required-note {
    margin: 16px 0 0;
    color: #8a6c7e;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 767px) {
    .register-page {
        padding-top: 22px;
    }

    .register-card {
        max-width: 100%;
    }

    .register-section {
        padding: 16px;
        border-radius: 18px;
    }

    .register-grid.two,
    .street-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
