* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

.register-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.register-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.brand {
    text-align: center;
    margin-bottom: 35px;
}

.brand h1 {
    font-size: 28px;
    color: #1769e0;
    margin-bottom: 8px;
}

.brand p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.form-header {
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-header p {
    color: #6b7280;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #1769e0;
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #1769e0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: #7a8494;
    font-size: 12px;
}

.register-message {
    display: none;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.register-message.success {
    display: block;
    background: #eaf8ef;
    color: #176b36;
}

.register-message.error {
    display: block;
    background: #fff0f0;
    color: #b42318;
}

.register-button {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 14px;
    background: #1769e0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.register-button:hover {
    background: #1258bd;
}

.register-button:active {
    transform: scale(0.99);
}

.register-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-link {
    text-align: center;
    margin-top: 25px;
}

.login-link p {
    font-size: 14px;
    color: #6b7280;
}

.login-link a {
    color: #1769e0;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .register-card {
        padding: 30px 22px;
    }

    .brand h1 {
        font-size: 24px;
    }

    .form-header h2 {
        font-size: 21px;
    }
}