@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: Montserrat;
    background: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-container {
    width: 370px;
    padding: 40px 30px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(54, 85, 160, 0.13);
    border-radius: 16px;
    text-align: center;
    border: 1.7px solid #ececec;
}

.logo {
    max-width: 350px;
    margin-bottom: 1px;
}

h1 {
    font-size: 1.42rem;
    color: #151a7a;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 1.08rem;
    color: #191970;
    font-weight: 600;
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 13px;
    border: 1px solid #d6d6e7;
    border-radius: 7px;
    font-size: 1rem;
    background: #f7f9ff;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #212478;
    outline: none;
}

.register-btn:hover {
    background: #191970;
}

.login-link {
    font-size: 0.97rem;
    color: #191970;
    margin-top: 6px;
}

.login-link a {
    color: #173775;
    text-decoration: underline;
    font-weight: 500;
}

* {
    box-sizing: border-box;
}

.register-container {
    width: 100%;
    max-width: 400px;
    /* or 370px if preferred */
    margin: 40px auto;
    padding: 40px 30px;
    box-shadow: 0 2px 16px rgba(54, 85, 160, 0.13);
    border-radius: 16px;
    text-align: center;
    border: 1.7px solid #ececec;
    background: #fff;
}

input[type="text"],
input[type="email"],
input[type="password"],
.register-btn {
    width: 100%;
    box-sizing: border-box;
}

.register-btn {
    padding: 14px 0;
    background: #151a7a;
    color: #fff;
    font-size: 1.13rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    margin: 18px 0 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(54, 85, 160, 0.18);
    width: 100%;
    margin-bottom: 1px;
    transition: background 0.18s;
}

@media (max-width: 420px) {
    .register-container {
        max-width: 98vw;
        padding: 26px 5vw;
    }
}

.form-message {
    text-align: center;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.form-message.success {
    background: #e9fbe9;
    color: #189c15;
    border: 1.4px solid #36d136;
}

.form-message.error {
    background: #ffeaea;
    color: #a91515;
    border: 1.4px solid #de4343;
}