* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.register-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body {
    background: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f5f7ff;
}

.register-container {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(13, 33, 161, 0.1);
    overflow: hidden;
}

.register-header {
    background: #3A4ED5;
    padding: 20px;
    text-align: center;
    color: white;
}

.register-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.register-header p {
    opacity: 0.9;
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.4;
}

.logo {
    max-width: 140px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.register-body {
    padding: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #b1dfbb;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #f1b0b7;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 1;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1.5px solid #e1e5f2;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    appearance: none;
    -webkit-appearance: none;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: #3A4ED5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 33, 161, 0.1);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    z-index: 2;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #3A4ED5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(13, 33, 161, 0.2);
}

.instructions {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.instructions h4 {
    color: #3A4ED5;
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.instructions p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eef2ff;
}

.login-link p {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-link a {
    color: #3A4ED5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.login-link a:hover {
    color: #141E46;
    text-decoration: underline;
}

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

    .register-container {
        max-width: 100%;
        margin: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .register-body {
        padding: 20px;
    }

    .register-header {
        padding: 15px;
    }

    .register-header h1 {
        font-size: 22px;
    }

    .register-header p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .register-body {
        padding: 15px;
    }

    .logo {
        max-width: 120px;
    }

    .input-with-icon input,
    .input-with-icon select {
        padding: 9px 9px 9px 38px;
        font-size: 13px;
    }

    .btn-submit {
        padding: 11px;
        font-size: 14px;
    }

    .instructions {
        padding: 10px 12px;
        font-size: 11px;
    }
}