:root {
    --primary: #6366f1;
    --bg: #f9fafb;
    --text: #111827;
    --muted: #6b7280;
    --white: #fff;
    --radius: 12px;
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}
.adres_lastrecord
{
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 1rem;
    background: #f9fafb;
    transition: border var(--transition);
}
.logo-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
#lastrecord .radio-box {
    text-align: center;
}
.logo-icon>img {
    max-width: 200px;
}

.message.success {
    display: block;
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 1rem;
}

#register-message {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 24px;
    padding: 18px 24px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ede7ff 0%, #f7eaff 100%);
    color: #6366f1;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 12px 0 rgba(99, 102, 241, 0.12);
    border: 1px solid #c7c5f8;
    line-height: 1.7;
    transition: box-shadow 0.2s;
}

#register-message::before {
    content: "✓";
    display: inline-block;
    margin-right: 12px;
    font-size: 1.4rem;
    color: #6366f1;
    background: #eef1ff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    box-shadow: 0 0 0 2px #c7c5f8;
}
#register-message.error {
    background: linear-gradient(90deg, #ffe7e7 0%, #ffeaea 100%);
    color: #f16363;
    border: 1px solid #f8c5c5;
    box-shadow: 0 2px 12px 0 rgba(241, 99, 99, 0.12);
}

#register-message.error::before {
    content: "✗";
    color: #f16363;
    background: #ffecec;
    box-shadow: 0 0 0 2px #f8c5c5;
}
.container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tabs {
    display: flex;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--muted);
}

.tab.active {
    background: var(--primary);
    color: #fff;
}

form {
    display: none;
    animation: fadeIn 0.3s ease;
}

form.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 1rem;
    background: #f9fafb;
    transition: border var(--transition);
}

input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
}

button[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition);
}

button[type="submit"]:hover {
    background: #4f46e5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
}