* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f3f6f9;
    min-height: 100vh;
    margin: 0;
    padding: 35px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    width: 100%;
}

.register-wrapper {
    width: 760px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 35px 30px;
}

.register-logo {
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 25px;
    margin-bottom: 28px;
}

.register-logo img {
    width: 260px;
    max-width: 100%;
}

.register-content {
    width: 100%;
}

.register-content h2 {
    color: #0c6f54;
    text-align: center;
    font-size: 26px;
    margin: 0 0 28px;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

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

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

label {
    display: block;
    font-size: 15px;
    color: #222;
    margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    margin-bottom: 20px;
    border: 1px solid #cfd4da;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select {
    cursor: pointer;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #0c6f54;
    box-shadow: 0 0 0 3px rgba(12, 111, 84, 0.08);
}

button {
    width: 100%;
    background: #0c6f54;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

button:hover {
    background: #0a6049;
}

.login-link {
    margin-top: 22px;
    text-align: center;
    font-size: 15px;
}

.login-link span {
    color: #333;
}

.login-link a {
    color: #0c6f54;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.form-message {
    display: none;
    margin-top: -13px;
    margin-bottom: 15px;
    font-size: 13px;
}

.error-message {
    color: #d40000;
}

.password-requirements {
    display: none;
    margin: -10px 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f7f9fa;
    border: 1px solid #e2e6e9;
    font-size: 13px;
}

.password-requirements span {
    display: block;
    margin: 4px 0;
}

.valid {
    color: #0c6f54;
    text-decoration: line-through;
}

.invalid {
    color: #d40000;
}

@media (max-width: 768px) {
    body {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .register-wrapper {
        margin-top: 25px;
        padding: 30px 22px;
    }

    .register-logo img {
        width: 240px;
    }

    .register-content h2 {
        font-size: 24px;
    }

    .register-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

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