
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.page-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.logo {
    margin-bottom: 4px;
    line-height: 0;
}

.logo img {
    width: 100%;
    max-width: 360px;
    height: auto;
}

h1,
.page-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 24px;
    line-height: 1.3;
}

.form-instruction,
.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.form-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-group,
.input-group {
    margin-bottom: 12px;
    text-align: left;
}

label,
label.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    border-color: #00a88e;
}

input::placeholder {
    color: #999;
}

button,
input[type="submit"],
.btn-primary,
.login-button,
.action-button,
.cancel-button {
    width: 100%;
    padding: 12px 14px;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #7ed38d;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: none;
    transform: none;
}

button:hover,
input[type="submit"]:hover,
.btn-primary:hover,
.login-button:hover,
.action-button:hover,
.cancel-button:hover {
    background-color: #6bc47a;
    box-shadow: none;
    transform: none;
}

button::before,
.login-button::before,
.action-button::before,
.cancel-button::before {
    display: none;
}

.softcancel-button {
    background-color: #f0ad4e;
}

.softcancel-button:hover {
    background-color: #ec971f;
}

.cancel-button {
    background-color: #e57373;
}

.cancel-button:hover {
    background-color: #ef5350;
}

.response,
.message {
    margin-top: 12px;
    font-size: 0.95rem;
}

.loading {
    color: #00a88e;
}

.error,
.message.error {
    color: #d32f2f;
    background: transparent;
    border: none;
    padding: 0;
}

.success,
.message.success {
    color: #00a88e;
    background: transparent;
    border: none;
    padding: 0;
}

.hidden {
    display: none;
}

.form-section {
    margin-bottom: 28px;
    text-align: center;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.input-icon,
.toggle-password {
    display: none;
}

.input-group input {
    padding: 12px 14px;
}

.price-info,
.period-info {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.price-info {
    font-size: 18px;
    color: #00a88e;
}

.button-container {
    margin-top: 12px;
}

.page-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 12px;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #00a88e;
    text-decoration: none;
    border: 1px solid #00a88e;
    border-radius: 6px;
    background: #fff;
    transition: background 0.15s, color 0.15s;
}

.login-link:hover {
    background: #00a88e;
    color: #fff;
}

.activation-panel {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 28px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.activation-panel--legacy {
    margin-top: 24px;
    border: 1px dashed #ccc;
    box-shadow: none;
    background: #fafafa;
}

.activation-panel h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
}

.activation-panel .panel-note {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #666;
}

.legacy-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 28px auto 0;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legacy-divider::before,
.legacy-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.google-translate-wrap {
    margin: -8px auto 20px;
    text-align: center;
    min-height: 40px;
    position: relative;
    z-index: 1000;
}

.google-translate-wrap--top {
    margin: 0;
    min-height: 0;
    flex: 1 1 auto;
    text-align: left;
}

.google-translate-wrap--top .language-select {
    max-width: 300px;
    margin: 0;
}

.language-select {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 10px 40px 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.language-select:focus {
    outline: none;
    border-color: #00a88e;
    box-shadow: 0 0 0 2px rgba(0, 168, 142, 0.2);
}

.google-translate-engine {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-gadget {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

.translated-ltr body,
.translated-rtl body {
    top: 0 !important;
}
