* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #eef2ff 0%, #dbe6ff 100%);
    min-height: 100vh;
    color: #14213d;
}

.register-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    height: 54px !important; 
    padding: 0 40px 0 16px !important; 
    border: 1px solid #cfd9ee;
    border-radius: 14px;
    font-size: 15px;
    color: #14213d;
    outline: none;
    transition: all .25s ease;
    background: #fff;
    box-sizing: border-box !important;
}

.password-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #007bff;
}

.toggle-password:focus {
    outline: none;
}

.eye-icon {
    display: block;
    pointer-events: none;
    width: 20px;
    height: 20px;
    stroke: #666;
}

.toggle-password:hover .eye-icon {
    stroke: #007bff;
}

.register-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 34px;
    box-shadow: 0 18px 50px rgba(20, 33, 61, 0.12);
    border: 1px solid #e8edf8;
}

.register-header {
    text-align: center;
    margin-bottom: 28px;
}

.register-badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.register-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
    color: #102a5c;
}

.register-header p {
    font-size: 17px;
    color: #64748b;
}

.register-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.field {
    display: flex;
    flex-direction: column;
}

.register-adjust img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.field label {
    font-size: 15px;
    font-weight: 700;
    color: #102a5c;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    height: 54px;
    border: 1px solid #cfd9ee;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    color: #14213d;
    outline: none;
    transition: all .25s ease;
    background: #fff;
}

.field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-register {
    width: 100%;
    border: none;
    border-radius: 999px;
    height: 56px;
    margin-top: 10px;
    background: linear-gradient(90deg, #162447, #2563eb);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.btn-register:hover {
    transform: translateY(-1px);
    opacity: .97;
}

.btn-register:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.register-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e6ecf7;
}

.register-footer p {
    color: #64748b;
    margin-bottom: 10px;
    font-size: 15px;
}

.login-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.login-link:hover {
    background: #dce8ff;
}

.register-alert {
    margin-bottom: 20px;
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.register-alert--success {
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    color: #15803d;
}

.register-alert--error {
    background: #fef2f2;
    border: 1px solid #f5c2c7;
    color: #dc2626;
}

@media (max-width: 768px) {
    .register-card {
        padding: 28px 20px;
    }

    .register-header h1 {
        font-size: 32px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
}