
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 20px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

.register-container {
    width: 100%;
    max-width: 470px;
    padding: 25px 28px 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

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

.logo img {
    display: block;
    width: 145px;
    max-width: 100%;
    height: 55px;
    object-fit: contain;
    margin: 0 auto;
}

h1 {
    margin: 5px 0 6px;
    text-align: center;
    font-size: 25px;
    color: #0f766e;
}

.subtitle {
    margin: 0 0 22px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
}

.form-group {
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

input {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.register-btn {
    width: 100%;
    height: 44px;
    margin-top: 21px;
    border: none;
    border-radius: 7px;
    background: #0f766e;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.register-btn:hover {
    background: #115e59;
}

.bottom-text {
    margin-top: 19px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.bottom-text a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.bottom-text a:hover {
    text-decoration: underline;
}

.message {
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 13px;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.message.success {
    background: #dcfce7;
    color: #166534;
}

.footer {
    margin-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 420px) {
    .register-container {
        padding: 22px 18px 18px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    h1 {
        font-size: 23px;
    }
}
